Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-03-2006, 05:58 PM   PM User | #1
rulian
New Coder

 
Join Date: Mar 2006
Posts: 38
Thanks: 0
Thanked 0 Times in 0 Posts
rulian is an unknown quantity at this point
Passing Variables from popup to window

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
rulian is offline   Reply With Quote
Old 06-03-2006, 07:54 PM   PM User | #2
Arty Effem
Banned

 
Join Date: May 2006
Location: England
Posts: 664
Thanks: 0
Thanked 84 Times in 84 Posts
Arty Effem can only hope to improve
Quote:
Originally Posted by rulian
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
Code:
opener.document.forms.myForm.myElement.value=
Arty Effem is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:29 PM.


Advertisement
Log in to turn off these ads.