unable to validate syntax need help ASAP

J

jdmoncr

Hello

I am a newbie at I am try to insert a variable in to a string for a
java script call ie
paneSplitter.showContent("id")

when excute the code i get this Output
<img src="../img/join.gif" alt=""><img id="id5" src="../img/page.gif"
alt=""><a onclick="javascript:paneSplitter.addContent('east', new
DHTMLSuite.paneSplitterContentModel( { id:d5 ,htmlElementId:'center5',contentUrl:example01.html,title:test,
tabTitle:'From server
2',closable:true } ) );paneSplitter.showContent(d5);" href="#">Node 3</
a>


I want the output the paneSpittler.showContent("d5") with the double
quotes around the variable like

here is the code

str += '<a onclick="javascript:paneSplitter.addContent(\'east\',
new DHTMLSuite.paneSplitterContentModel( { id:'+this.obj+nodeId
+' ,htmlElementId:\'center5\',contentUrl:'+node.url+',title:test,
tabTitle:\'From server
2\',closable:true } ) );paneSplitter.showContent('+this.obj+nodeId
+');" href="#"/>'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top