Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > unable to validate syntax need help ASAP

Thread Tools

unable to validate syntax need help ASAP

Posts: n/a

I am a newbie at I am try to insert a variable in to a string for a
java script call ie

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</

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

Reply With Quote

Thread Tools

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 On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help...on Modelsim..VHDL syntax? ASAP:) kaji VHDL 1 03-15-2007 04:05 AM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Computer Support 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM
ASP .NET Panels/Back Button Problem! NEED HELP ASAP! Chad A. Beckner ASP .Net 2 06-18-2004 12:02 AM