Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by peacemaker1820 (Pilgrim)
on Jul 09, 2002 at 18:16 UTC ( #180562=perlquestion: print w/replies, xml ) Need Help??

peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks
I have a page(parent) from where I am popping up a window in perl. There are some input boxes in that pop up window. Upon submission of my pop up window form, I would like my original page(parent), to reload and display the info that was in the pop up window. Is there a way to do that?
I understand that this is not a pure PERL question but I really need help.

Thanks Brothers.
  • Comment on View info from Pop up window into parent that invoked pop up.

Replies are listed 'Best First'.
(OT) Re: View info from Pop up window into parent that invoked pop up.
by cLive ;-) (Prior) on Jul 09, 2002 at 19:41 UTC
    <form ... target="_parent">
    and then do yoyr stuff - should do the trick.

    cLive ;-)

    --
    seek(JOB,$$LA,0);

Re: View info from Pop up window into parent that invoked pop up.
by defyance (Curate) on Jul 09, 2002 at 18:22 UTC
    Not quite a perl question, but you could use meta tags, or even java script like so:
    <meta http-equiv="refresh" content="0; URL=http://www.you.net/">
    Don't kill me for posting this!!
    <script language="javascript" type="text/javascript"> <!-- if (window != window.top) top.location.href = location.href; //--> </script>

    --~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--

    perl -e '$a="3567"; $b=hex($a); printf("%2X\n",$a);'

      Why can't you just have the popup form have it's action set to the url of the parent..then put a catcher in the parent that catches the ....oh...hang on let me show you..
      <FORM METHOD=POST ACTION="url_to_cgi_script_that_CREATES_FRAME_That_HO +LDS_PARENT.cgi?action_PARAM">


      TexasTess
      "Great Spirits Often Encounter Violent Opposition From Mediocre Minds" --Albert Einstein
Re: View info from Pop up window into parent that invoked pop up.
by earthboundmisfit (Chaplain) on Jul 09, 2002 at 18:40 UTC
    I understand that this is not a pure PERL question

    It's not a Perl question at all, but I need the XP adjustment and I feel your pain :)

    opener.location
    is your friend. After the form submits, set the opener location to whatever you want.

Re: View info from Pop up window into parent that invoked pop up.
by Aristotle (Chancellor) on Jul 09, 2002 at 18:52 UTC
    I believe what you want would be done by giving the parent page a frame name, then adding target="parent_frame_name" to the <form> tag in the popup window. You can also add an onLoad="" to the <body> in the output of the Perl script that will close the popup.

    Makeshifts last the longest.

Re: View info from Pop up window into parent that invoked pop up.
by Moonie (Friar) on Jul 09, 2002 at 22:28 UTC
    You could also use this:
    window.opener.location.reload();
    Non-perl solution...erg.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2020-12-03 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (57 votes). Check out past polls.

    Notices?