Topic awaiting preservation: Need Help With Onchange... |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
posted 05-01-2003 22:28
I am using a script that opens a pop-up window for the users to make a selection and then it closes the window and puts their selection into a form field on the parent page. I can get the javascript to work if the user clicks a link to open the window, but I would like the window to open with the onchange in the select field. Here is the code on the parent page, I was hoping someone could tell me how to get the value of the selected drop down item to be passed in the onchange command. (replacing the 'XXXX' 's) |
Nervous Wreck (II) Inmate From: Indianapolis, In USA |
posted 05-02-2003 14:11
This has worked for me (at least in current browsers: |
Nervous Wreck (II) Inmate From: |
posted 05-07-2003 15:26
rickindy, |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-07-2003 21:09
Remove the "javascript:" part. That is only used in very specific circumstances; never inside an onsomething attribute such as onchange or onmouseover or anything like that. |
Nervous Wreck (II) Inmate From: Indianapolis, In USA |
posted 05-08-2003 13:50
I got this snippet at home last night. The only real problem I found was that he had defined the function with four arguments, but was only calling it with three. Hopefully fixing that will solve the problem. |
Nervous Wreck (II) Inmate From: |
posted 05-09-2003 16:02
Thanks for the help rickindy. The problem WAS in fact that my argument number was different than the number of items I was calling. |