Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: View info from Pop up window into parent that invoked pop up.

by George_Sherston (Vicar)
on Jul 10, 2002 at 15:05 UTC ( #180767=note: print w/replies, xml ) Need Help??


in reply to View info from Pop up window into parent that invoked pop up.

Does the user enter values in the parent window as well as the pop-up window? And you want to combine all these values? If so then you'll need to submit the form in the parent window at the same time you launch the pop-up, then store that info somewhere your script can get it (perhaps a unique filename which you pass to the pop-up) and then pick it up again with the script that runs when you submit the form in the pop-up.

Confused? I am.

I'm not quite clear about what this means:

I want the values to remain PLUS add the value from the pop up window

... do you mean numerical addition, or more data fields or what? In any event, as I say, you'll need to submit the parent data and save it, then send the pop-up window a filename in a hidden field, so you can find the data again when the pop-up submits.

I promise not to repeat myself again (sic) if you post some code!

George Sherston
  • Comment on Re: View info from Pop up window into parent that invoked pop up.

Replies are listed 'Best First'.
Re: Re: View info from Pop up window into parent that invoked pop up.
by peacemaker1820 (Pilgrim) on Jul 10, 2002 at 15:38 UTC
    When I said
    I want the values to remain PLUS add the value from the pop up window
    What I meant was that I wanted to populate my texboxes in my parent form with the values that were entered in the pop up. However, before the pop up window was opened, some fields in my parent form were filled in already. Therefore, I want the values in the texboxes of my parent window to remain, PLUS populate the values from the pop up window into my parent form.
      In that case you have two options. You can either do some slightly complex javascript in the pop-up using window.opener to refer back to the parent window and set the values in the parent form, or you can, as I suggested, submit the parent form at the same time you launch the pop-up, cache the submitted values, and then, when you submit the form in the pop-up, combine the two values.

      Why not pick whichever of these suits your expertise, have a go, and then, in the unlikely even it doesn't work, post the code here, and someone will probably be able to fix it up

      George Sherston

      George Sherston

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://180767]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2019-07-24 02:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (32 votes). Check out past polls.

    Notices?