Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Don't ask to ask, just ask
 
PerlMonks  

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

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.