View Full Version : In a Simple Form can a link invoke onsubmit and pass along a value?
blueskies
Sep 11th, 2007, 03:30 PM
I want the user to click a link. That link contains a value which is a form object field. It also invokes onsubmit...
Possible?
Marten Deinum
Sep 11th, 2007, 03:44 PM
No. At least not the way you want it.
hexghost
Sep 11th, 2007, 03:45 PM
You'll see some browsers that try and do both - IE (depending on how you code it) might submit the form before the user is navigated away. But Marten is correct - you don't want to do it that way.
Marten Deinum
Sep 11th, 2007, 04:04 PM
You can submit a form from a link but that would include some javascript. It depends on what you want/need. However giving a, best, solution is hard if we have only 2 lines to go on :).
blueskies
Sep 11th, 2007, 04:20 PM
I was able to do it but using Javascript to submit the form. I guess I have to brush up on my javascript!
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.