Solved

Multiple nested quotes

Posted on 2004-03-23
3
937 Views
Last Modified: 2009-12-16
How do I do multiple nested quotes (3)?  The situation is a function that sets the innerHTML of a <TD> to contain a link that references another function, with parameters. I tried alternating  quotes like you do when you only have one set of quotes nested inside another, but that didn't work for the additional set of quotes.
                                          
html = 'Demonstration Project (Demo1)<td><a href = "javascript:ShowBugs (102507,'Demonstration+Project+(Demo1)',0,2)">Current Bugs</a>';

Thanks.
0
Comment
Question by:drr37
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Bustarooms earned 250 total points
Comment Utility
in your example you need to escape the single quotes with a slash

html = 'Demonstration Project (Demo1)<td><a href = "javascript:ShowBugs (102507,\'Demonstration+Project+(Demo1)\',0,2)">Current Bugs</a>';
0
 

Author Comment

by:drr37
Comment Utility
ok, thanks, it worked
0
 
LVL 10

Expert Comment

by:Bustarooms
Comment Utility
np
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now