By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,630 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,630 IT Pros & Developers. It's quick & easy.

open a url in rightpane

P: 4
Hi

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

Expand|Select|Wrap|Line Numbers
  1.  function doOnClick(nodeId){
  2.  var myUrl = tree.getUserData(nodeId,'myurl'); 
  3. rightPane.src="myUrl.jsp?nodeId=" +nodeId " + "&text=" +text
  4. }
but I got an error " right pane object is not found"

can anyone help

Thanks
Corejavaboy
Jan 8 '08 #1
Share this Question
Share on Google+
5 Replies


100+
P: 141
Are u using Frames concept

if not what is the rightPane???



Hi

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

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

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

can anyone help

Thanks
Corejavaboy
Jan 9 '08 #2

acoder
Expert Mod 15k+
P: 16,027
I am trying to ope a url in rightpane
my script is

Expand|Select|Wrap|Line Numbers
  1.  function doOnClick(nodeId){
  2.  var myUrl = tree.getUserData(nodeId,'myurl'); 
  3. rightPane.src="myUrl.jsp?nodeId=" +nodeId " + "&text=" +text
  4. }
but I got an error " right pane object is not found"
If you want to use myUrl, you have to use it like this:
Expand|Select|Wrap|Line Numbers
  1.  var myUrl = tree.getUserData(nodeId,'myurl'); 
  2. rightPane.src=myUrl + ".jsp?nodeId=" +nodeId " + "&text=" +text
Jan 9 '08 #3

P: 4
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
Jan 9 '08 #4

acoder
Expert Mod 15k+
P: 16,027
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.
Jan 10 '08 #5

100+
P: 141
Hi,

if u r using the frame then i think u should access the frame by using
document.getElementById() if it does solve
then use parent.upper.document.src tryout
i also try this
Feb 2 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.