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

Ho do I do this

P: n/a
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

Sep 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Steven wrote:
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;
}
>
Many thanks Steven
Sep 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.