unable to validate syntax need help ASAP

Discussion in 'Javascript' started by jdmoncr, Nov 9, 2008.

  1. jdmoncr

    jdmoncr Guest

    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="#"/>'
    jdmoncr, Nov 9, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chad A. Beckner
    Replies:
    2
    Views:
    563
    Chad A. Beckner
    Jun 18, 2004
  2. Chad A. Beckner

    Need Help ASAP!

    Chad A. Beckner, Jun 25, 2004, in forum: ASP .Net
    Replies:
    14
    Views:
    727
    Roger Helliwell
    Jul 5, 2004
  3. Roshawn Dawson

    Need Help ASAP!!

    Roshawn Dawson, Nov 2, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    784
    Jevon
    Nov 4, 2005
  4. IC Browsers
    Replies:
    1
    Views:
    337
    Roedy Green
    May 10, 2004
  5. kaji
    Replies:
    1
    Views:
    592
    quantum_dot
    Mar 15, 2007
Loading...

Share This Page