...

View Full Version : Passing Variables from popup to window



rulian
06-03-2006, 06:58 PM
How can I accomplish this:

the user can input a word into a text field in the main page.
next the the text field is a button to check for the name.

so basically i have this
<input type='text' name='language'><input type='button' value='check for it'>

now, on clicking the button to check it a popup window comes up and give the user several options in the form of a list menu.

I'm up to that, however, how do I get what ever value they select from the list menu on the popup to the text box i have in the main window
here it the popup content
<select name="language" size="4" id="language">
<option value="0" selected>Choose One</option>
<option value="English">English</option>
<option value="Spanish">Spanish</option>
<option value="Italian">Italian</option>
<option value="Portuguese">Portuguese</option>
<option value="French">French</option>
</select>

i mean without refreshing the main window

Arty Effem
06-03-2006, 08:54 PM
How can I accomplish this:

the user can input a word into a text field in the main page.
next the the text field is a button to check for the name.

so basically i have this
<input type='text' name='language'><input type='button' value='check for it'>

now, on clicking the button to check it a popup window comes up and give the user several options in the form of a list menu.

I'm up to that, however, how do I get what ever value they select from the list menu on the popup to the text box i have in the main window
here it the popup content
<select name="language" size="4" id="language">
<option value="0" selected>Choose One</option>
<option value="English">English</option>
<option value="Spanish">Spanish</option>
<option value="Italian">Italian</option>
<option value="Portuguese">Portuguese</option>
<option value="French">French</option>
</select>

i mean without refreshing the main window
opener.document.forms.myForm.myElement.value=



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum