Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    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=


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •