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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

escape method

Status
Not open for further replies.

tmmet

IS-IT--Management
Jul 25, 2005
7
US
Hi,
I have a question.I am unable to use the escape() in the below line.Can anyone help me out.
out.println("<TD>" +
"<script>\n document.write(\" "+
"<A HREF=mailto:testyahoo@yahoo.com"+
"?subject=javascript:escape('Test&Execute')"+
+ ">Test<A>\"); \n"

Thanks in advance,
 
Because you've enclosed it in quotes rendering it a string rather than something the script engine recognises as a function.

[sub]Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
[/sub]
 
Code:
out.println("<TD>" +
 "<script>\n document.write(\"  " +
 "<A HREF=mailto:testyahoo@yahoo.com" +
 "?subject=javascript:" + escape('Test&Execute') +
 ">Test<A>\"); \n"

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top