Re: A submit
Jon <[email protected]> Mon, 23 Feb 2004 14:34:26 -0800
| Newsgroups | gmane.org.ballistichelmet.devel |
|---|---|
| Message-ID | <[email protected]> |
dvanhorn wrote: > How in the fuck does one compatibly use an anchor to submit a form? > > <form> > <a onclick="submit()">submit</a> > </form> > > Works on Moz and IE 6+. Doesn't work on IE 6-. > > <form name="f"> > <a href="javascript:form.f.submit()">submit</a> > </form> I would assume a mixture of both would work. Try: <form name=f action="somwehere.scm" method=post> <a href="javascript:document.f.submit();">Submit</a> </form> Should work. > > Works in IE 6-/+. Doesn't work in Moz. > > Using both still doesn't work in Moz. > > Any other ideas? (Surely someone has figured this out, but I am pulling hair > out as we speak.) > > David > > _______________________________________________ > devel mailing list > [email protected] > http://ballistichelmet.org/mailman/listinfo/devel