Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass font tag in querystring

Status
Not open for further replies.

MillsRJ

Technical User
Sep 14, 2002
28
CA
I am trying to pass a font tag in a querystring without much success. I've tried several combinations ("'", ', "", """) but it doesn't seem to want to bring the font tag over.

any ideas?

thanks



here is the code

strsummary = strsummary & &quot;<font color=&quot;&quot;#FF0000&quot;&quot;>Requested change for Date = &quot;&rdate & &quot;and Category = &quot; &request.form(&quot;subcatname&quot;)(i)&&quot; was rejected due to a NON-NUMERIC entry.</font><br>&quot;


<script language=&quot;JavaScript&quot;>
window.open('message.asp?strmsg=<%=strsummary%>','Password', 'width=650, height=200, dependent=yes, resizeable=yes, menubar=yes, scrollbar=no')
</script>

Rob Mills
System Analyst
Correctional Services Canada
(all statements are my own ...., ah hell, its the government, sue'em anyway)
 
try Server.HTMLEncode():

Code:
strsummary = strsummary & &quot;<font color=&quot;&quot;#FF0000&quot;&quot;>Requested change for Date = &quot;&rdate & &quot;and Category = &quot; &request.form(&quot;subcatname&quot;)(i)&&quot; was rejected due to a NON-NUMERIC entry.</font><br>&quot;


<script language=&quot;JavaScript&quot;>
    window.open('message.asp?strmsg=<%= Server.HTMLEncode(strsummary) %>','Password', 'width=650, height=200, dependent=yes, resizeable=yes, menubar=yes, scrollbar=no')
</script>


if you want to use it client-side with js, you might need to unescape() it first in js.



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top