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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Altering a dropdown list - From inside an IFRAME

Status
Not open for further replies.

Tels

IS-IT--Management
Jul 10, 2001
290
GB
I have no problem in using JScript to change the menu options, however I am having more trouble than I would like.

The html doc (IMsubmit.htm) consists of a form (form1) which contains the dropdown, (touser)
Next to the form is an IFRAME, (IMwin) into which another CGI generated .htm page is loaded.
This .htm file is where I want to place the code:

function upDate(){
window.getElementById[touser].options[0].text='tels';
window.getElementById[touser].options[1].text='paul';
window.getElementById[touser].options[2].text='test';
}
</script>

I have also tried 'top.form1.touser.options[0].text'
and 'parent.form1.touser... etc.....
I know this should work but it isnt. Help!!!! Mixed Linux/Win2000 Network Administrator
 
darn... lots of sifting to do huh
time for a cup of coffee, methinks

Thanks for the good links...........

Mixed Linux/Win2000 Network Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top