Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ONCHANGE send selected data to IFRAME

Status
Not open for further replies.

skosterow

Technical User
Feb 23, 2002
135
US
Heya all -

Im trying to send a selected value from one form to another form witch then passes this to a IFRAME.

Here is the code I have:

<select name="NEW::pAREFPHYS" class="form" style="width:200" onchange="window.open(this.options[this.selectedIndex].value,'_refphys')">NEW:::pAREFPHYS</select>

When the option changes I need the selected option to goto the IFRAME:

<iframe src="/patients/ref-phys.pl" name="_refphys" width="205" height="150" marginwidth="0" marginheight="0" frameborder="0"></iframe>

However, I get a Page Cannot be displayed error. The page is always the same (/patients/ref-phys.pl) the only thing that changes is the value of NEW:::pAREFPHYS.

Thanks for the help.

- Scott
 
Sounds stupid but change onchange to onChange

I don't know about the syntax of your jscript but that has been my prob before.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Ok, I'm noone to advise on javascript but whaddya know.. I'm gonna try.. what if rather than window.open(...) you used parent._refphys.location=...

Just a thought..

Anyway hope that helps..

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top