Ho do I do this

S

Steven

Hi
I have a page (Selection.html) with 2 frames lFrame,rFrame. the source
for lFrame is Load.php and the source for rFrame is choose.php.
Now in load.php I want to have a javascript function Show(theId) which
when called will make rFrame display the source choose.php?id=theId.
Can someone help with how the javascript function should be writen

Many thanks Steven
 
T

Tom Cole

Steven said:
Hi
I have a page (Selection.html) with 2 frames lFrame,rFrame. the source
for lFrame is Load.php and the source for rFrame is choose.php.
Now in load.php I want to have a javascript function Show(theId) which
when called will make rFrame display the source choose.php?id=theId.
Can someone help with how the javascript function should be writen

It would like something like:

function Show(theId) {
parent.frames['rFrame'].document.location = 'choose.php?id=' + theId;
}

although I think you can also use:

function Show(theId) {
parent.rFrame.document.location = 'choose.php?id=' + theId;
}

or even

function Show(theId) {
parent.frames[1].document.location = 'choose.php?id=' + theId;
}
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top