...

View Full Version : text to submit



esytiger202
08-07-2007, 02:10 PM
Hello all

I wanna submit a form by a text or something like link: I use this :



<a href='#' onClick="forms['a3'].submit()">Home</a>


1-is this a javascript function?
2-when I use it, the page goes up cuz of href='#', can you give me a method that, the txt act as a link and submit on click ?
(the page doesnt jump and also onmouse over the mouse changes to a link symbol)

Thanks alot

mic2100
08-07-2007, 02:25 PM
hi,

i would set it out like so...



<div onClick="document.form1.submit();" style="cursor:pointer;">submit</div>


hope this helps.

esytiger202
08-07-2007, 02:35 PM
hi,

i would set it out like so...



<div onClick="document.form1.submit();" style="cursor:pointer;">submit</div>


hope this helps.

Yes, nice, but its javascript, can you suggest any other method to submit like this without js ?

Thanks

mic2100
08-07-2007, 02:44 PM
yeah u can use a submit button or the code as above, to submit a form without a button requires some kind of script i think.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum