Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two questions about pop-ups 1

Status
Not open for further replies.

serpento

Programmer
Jun 16, 2002
92
GB
[tt]Two questions about pop-ups
---------------------------[/tt]
1: At the momment I have a form like this:
[tt]
<FORM method=&quot;post&quot; action=&quot;../cgi-bin/processMsg.pl&quot; ...
[/tt]
Is it possible to get [tt]processMsg.pl[/tt] to open in a pop-up window?

2: Is it possible to refresh from a pop-up the window that called it? -Ed ;-)

________________________________
Destiny is not a matter of chance; it is a matter of choice.
 
i think this could work :
in your form tag add a target properties like this for example :
<form method=&quot;post&quot; action=&quot;../cgi-bin/processMsg.pl&quot; target=&quot;_blank&quot;>

for your second question try this code from your popup :

opener.location.reload();
 
I'll definately use opener.location.reload();!

<form method=&quot;post&quot; action=&quot;../cgi-bin/processMsg.pl&quot; target=&quot;_blank&quot;> wasn't quite what I was lokking for but I'll do it a different way now.

Thanks loads for your help, -Ed ;-)

________________________________
Destiny is not a matter of chance; it is a matter of choice.
 
When you open your popup the first parameter is the URL and the second one is the target

so if you open your popup like this :

window.open(&quot;toto.htm&quot;,&quot;_TOTO&quot;,&quot;height=200, width=400&quot;);

u can write this in yoour form tag :

<form id=f1 method=post action=&quot;toto.htm&quot; target=&quot;_TOTO&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top