Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

popup windows passing variables to text boxes

  • 28-01-2005 11:02AM
    #1
    Closed Accounts Posts: 293 ✭✭


    i am trying to create a popup window that has a dynamic list that when one of the dynamic selections (dunno if i need radio,list or check?) is selected it uses that selection in a text box on the main page

    something like the airport list on ebookers but it seems that list is not dynamic?

    any ideas?


Comments

  • Registered Users, Registered Users 2 Posts: 3,890 ✭✭✭cgarvey


    sinus wrote:
    i am trying to create a popup window that has a dynamic list that when one of the dynamic selections (dunno if i need radio,list or check?) is selected it uses that selection in a text box on the main page

    So look at the ebookers site to see how they do it?

    Something like
    function optSelected() {
      if( window.opener ) {
        // check for the various form elements here
        var selectInput = document.forms['popupform'].elements['popupchoiceselect'];
        window.opener.document.forms['mainpageform'].elements['targettext'].value = selectInput[selectInput.selectedIndex].value;
      }
    }
    


Advertisement