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

Nested Quotes

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
Guys,

My head is killing me. I have an ASP program which pulls data from a database and then uses this data to generate a client side JS function in the output to the browser. So I have double quotes surrounding each line of Response.Write in ASP - then I have a string variable that I am creating in the JS function which is bounded by single quotes and contains both single and double quotes.

As you can guess, my head is spinning. How do you display single quotes within sinlge quotes in JS. I have tried \' but this does not seem to be working. Mise Le Meas,

Mighty :)
 
Are you closing them correctly like: \' Hello '\ - trivial I know, but originally I thought \' should just represent a quote, and order shouldn't matter.
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top