Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Upon Submission of Form -> Pop Window

by CodeHound (Beadle)
on Jul 05, 2002 at 15:50 UTC ( [id://179667]=note: print w/replies, xml ) Need Help??


in reply to Upon Submission of Form -> Pop Window

Indeed this is not related to perl, but i will try to help anyway... even if it gets deleted :p
Hope my reply is not meant as a misdemeanor! A question is a question and i am eager to help since i feel fine today

The main issue here is that you do not need to 'submit' the page to obtain the effect you want. Better, you need not do it!
What you need is a button which, on 'onclick' calls a javascript routine that pops up on an href with a cgi script that receives the parameters you need.
The sending page does not change, and the popup can perform any action you want. Especially if programmed in perl :)

Again, I hope we do not upset anybody and ask excuses if so.

update 1: like:
... <img src="bighotdogncolddrinkbutton.gif" onclick="javascript: openmypo +pup(document.hiddenfield1, document.hiddenfield2)"> ...

Replies are listed 'Best First'.
Re: Re: Upon Submission of Form -> Pop Window
by amphiplex (Monk) on Jul 05, 2002 at 15:58 UTC
    an example for the javascript function:
    function submitit() { w_action=window.open('$self_url','action'); document.forms['main'].submit(); }
    and inside your form you can put:
    <INPUT TYPE=BUTTON value=submit onClick='submitit()'>
    I have taken this from a script I wrote some time ago, it is intended just to provide starting point.

    ---- kurt
Re: Re: Upon Submission of Form -> Pop Window
by peacemaker1820 (Pilgrim) on Jul 05, 2002 at 15:55 UTC
    thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-29 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found