Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: JavaScript and form submission

by themage (Friar)
on Nov 21, 2006 at 15:10 UTC ( [id://585278]=note: print w/replies, xml ) Need Help??


in reply to JavaScript and form submission

Hi rashley,

In true, the Value and the Caption of a submit button are usually the same thing, and as far as I had found it works ok with every browser.

Your problem, however, is a diferent thing. You want to disable the buttons, but you want the button value to be submitted anyway.

The way I would do it is by having a hidden field and then assign it the value of the pressed button, or by changing the buttons from submit to normal buttons, with a javascript handler in the onrelease that change the hidden field value and submit the form.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-29 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found