open a url in rightpane

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • corejavaboy
    New Member
    • Oct 2007
    • 4

    open a url in rightpane

    Hi

    I am trying to ope a url in rightpane
    my script is

    [CODE=javascript] function doOnClick(nodeI d){
    var myUrl = tree.getUserDat a(nodeId,'myurl ');
    rightPane.src=" myUrl.jsp?nodeI d=" +nodeId " + "&text=" +text
    }[/CODE]

    but I got an error " right pane object is not found"

    can anyone help

    Thanks
    Corejavaboy
    Last edited by gits; Jan 9 '08, 09:11 AM. Reason: added code tags
  • vee10
    New Member
    • Oct 2006
    • 141

    #2
    Are u using Frames concept

    if not what is the rightPane???



    Originally posted by corejavaboy
    Hi

    I am trying to ope a url in rightpane
    my script is

    function doOnClick(nodeI d){
    var myUrl = tree.getUserDat a(nodeId,'myurl ');
    rightPane.src=" myUrl.jsp?nodeI d=" +nodeId " + "&text=" +text
    }

    but I got an error " right pane object is not found"

    can anyone help

    Thanks
    Corejavaboy

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Originally posted by corejavaboy
      I am trying to ope a url in rightpane
      my script is

      [CODE=javascript] function doOnClick(nodeI d){
      var myUrl = tree.getUserDat a(nodeId,'myurl ');
      rightPane.src=" myUrl.jsp?nodeI d=" +nodeId " + "&text=" +text
      }[/CODE]

      but I got an error " right pane object is not found"
      If you want to use myUrl, you have to use it like this: [CODE=javascript] var myUrl = tree.getUserDat a(nodeId,'myurl ');
      rightPane.src=m yUrl + ".jsp?nodeI d=" +nodeId " + "&text=" +text[/CODE]

      Comment

      • corejavaboy
        New Member
        • Oct 2007
        • 4

        #4
        Originally posted by vee10
        Are u using Frames concept

        if not what is the rightPane???
        I am using frames concept
        Can you help me how to open a url in frame

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Show the HTML frame layout. Where do you call this?

          To change the URL in a frame, use frame.location. href = newURL where 'frame' is the reference to the frame.

          Comment

          • vee10
            New Member
            • Oct 2006
            • 141

            #6
            Hi,

            if u r using the frame then i think u should access the frame by using
            document.getEle mentById() if it does solve
            then use parent.upper.do cument.src tryout
            i also try this

            Comment

            Working...