![]() Topic awaiting preservation: Need Help With Onchange... (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() 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 |
![]() This has worked for me (at least in current browsers: |
Nervous Wreck (II) Inmate From: |
![]() rickindy, |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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 |
![]() 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: |
![]() Thanks for the help rickindy. The problem WAS in fact that my argument number was different than the number of items I was calling. |