Preserved Topic: submit (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Sweden |
posted 08-29-2002 11:27
is it possible to make a form-submit using a normal link? Or is it possible to make a submitbutton to look like a normal link? |
Bipolar (III) Inmate From: Berlin (almost) |
posted 08-29-2002 13:31
Yes, you can do that - but it requires a bit of JavaScript which means that only visitors who didn't disable it may submit the form. But I suppose you won't meet many of them and apart from that their Enter button should still submit it. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-29-2002 17:53
Or document.forms.name_of_the_form, since the two are equivalent. |
Paranoid (IV) Inmate From: Where I'm from isn't where I'm at! |
posted 08-30-2002 15:13
Small point to add here: (but you all know this already) |
Nervous Wreck (II) Inmate From: Sweden |
posted 09-02-2002 08:38
Thx... But I can't make it work... |
Bipolar (III) Inmate From: Berlin (almost) |
posted 09-02-2002 14:21
Does the variable contain a number or a string? If it's a string, you'll have to put quotes around it, like ["name_of_my_form"]. Or try doing it the way Slime suggested. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-02-2002 18:07
Dufty: Even when <input type="submit" ... > is used, pressing enter in a multi-line text box won't submit the form. Pressing enter with any other type of form control in focus, however, will. |