Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Multiple nested quotes

Posted on 2004-03-23
3
Medium Priority
?
943 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Bustarooms earned 1000 total points
ID: 10660617
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
ID: 10660812
ok, thanks, it worked
0
 
LVL 10

Expert Comment

by:Bustarooms
ID: 10660823
np
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…

719 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