Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
add a value with a " in it
Old 02-23-2008, 08:41 PM add a value with a " in it
Novice Talker

Posts: 8
Trades: 0
Well i was working on a small music loader in html, flash, and jscript and Im using a code maker so the user can add songs, the problem is I dont know how to make the code display becuase its
Code:
Song("
at the begging and
Code:
");
at the end.

Is there a way to get it to work with these seeing as there is a (" and a ") in javascript.
Eddie12390 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-23-2008, 09:11 PM Re: add a value with a " in it
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Escaping, my friend...
Escaping...
Code:
var x="And I said:\"Thou shall not forget!\" to my sons.";
The \ does it all.

Or use the single quotes:
Code:
var x='And I said:"Thou shall not forget!" to my sons.';
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-23-2008, 09:25 PM Re: add a value with a " in it
Novice Talker

Posts: 8
Trades: 0
Thank you so much!
Eddie12390 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to add a value with a " in it
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11617 seconds with 12 queries