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="javascriptaneSplitter.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="javascriptaneSplitter.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="#"/>'
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="javascriptaneSplitter.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="javascriptaneSplitter.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="#"/>'