Change display of 'More...' text |
4/23/2007 10:46:52 AM |
ASPRunnerPro General questions | |
K
kbdci author
When I click the More... in a field, I would like to display the text in a different font and size than the default in the popup window. How can I set that? |
|
J
|
Jane 4/24/2007 |
Kathy, ... ret = ret & " <a href=""#"" onClick=""java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location =no,left=150,top=200,scrollbars=yes');" ... ret=ret & "return false;"">" & "More" & " ...</a>" Elseif cNumberOfChars > 0 And Len(strValue) > cNumberOfChars And mode = MODE_LIST Then ... ret = ret & " <a href=# onClick=""java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location =no,left=150,top=200,scrollbars=yes');" ret=ret & " pwin.location='" & table & "_fulltext.asp?" & iquery & "'; return false;"">" & "More" & " ...</a>" ... |
K
|
kbdci author 4/24/2007 |
Thanks so much for the information. I had tried searching for several things but couldn't find this code. By the way, in my version of ASPRunner Pro (4.0 build 96), the code is in include/aspfunctions.asp. |
J
|
Jane 4/25/2007 |
Kathy, if Len(ProcessLargeText)>cNumberOfChars and left(strValue,7)<>"<a href" then ProcessLargeText = Left(ProcessLargeText, cNumberOfChars ) & _ " <a href=""#"" onClick=""java script: pwin = window.open('',null,'height=300,width=400,status=yes,resizable=yes,toolbar=no,menubar=no,location =no,left=150,top=200,scrollbars=yes'); " ind = 1 ProcessLargeText = ProcessLargeText & "pwin.document.write('<font color=red>" & HTMLEncode(Replace(Replace(Replace(Mid(strValue,ind, ind+800),"'","\'"), vbcrlf, " "), vblf, " ")) & "</font>');" & vbcrlf ProcessLargeText = ProcessLargeText & "pwin.document.write(' <hr size=1 noshade><a href=# onClick=\'window.close();return false;\'>" & ##SCRIPTMESSAGE(CLOSE_WINDOW)## & "</a>');" ProcessLargeText = ProcessLargeText & "return false;"">" & ##SCRIPTMESSAGE(MORE)## & " ...</a>" end if |
K
|
kbdci author 4/25/2007 |
Thanks again. That works fine unless I have any HTML in the field to be displayed in the LargeText window. I have found that if I set the field as HTML in the "View as" column on the formatting screen, the "More" function is not available. If I don't set the field to HTML, I can then use HTML codes in the text as long as I don't include any in the text that appears on the View screen. |
![]() |
Sergey Kornilov admin 4/25/2007 |
Kathy, |