Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to pass form data to a onclick=javascript:new.window perl script

by exussum0 (Vicar)
on Feb 17, 2004 at 10:56 UTC ( [id://329553]=note: print w/replies, xml ) Need Help??


in reply to How to pass form data to a onclick=javascript:new.window perl script

I don't write JS all the time, but I know that you can create a form with hidden fields, and have your function do a form.submit(). It doesn't use the CGI module, but it does avoid the ugly get method.
<html> <body> <form name="myform" action="http://perlmonks.org/index.pl?" method="po +st"> <input type="hidden" name="node" value="sporty"> </form> <a href="#" onClick="myform.submit()">clicky!</a> </body> </html>
I did this using safari. Try it in moz, try it in ie.

Update: Case of morning eyes. I read through the thread forgetting it was "new window".


Play that funky music white boy..
  • Comment on Re: How to pass form data to a onclick=javascript:new.window perl script
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2025-04-25 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.