Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on View info from Pop up window into parent that invoked pop up.

Replies are listed 'Best First'.
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
(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 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
Domain Nodelet?
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 cooling their heels in the Monastery: (3)
As of 2022-06-29 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (94 votes). Check out past polls.

    Notices?