Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Submit a form with a link?


Message #1 by "Ebers, David" <David.Ebers@o...> on Tue, 6 Mar 2001 19:09:52 +0100
	<a href="javascript:submitRequest();">weiter...</a></td>

-----Original Message-----
From: Ebers, David [mailto:David.Ebers@o...]
Sent: Tuesday, March 06, 2001 1:10 PM
To: HTML Code Clinic
Subject: [html_code_clinic] Submit a form with a link?


Hello,

I thougth I could submit a form by executing a  client-side javascript
function.

Here is the link

	<a class="link" href="foo.jsp"
onclick="javascript:submitRequest();">weiter...</a></td>

and the script

	function submitRequest() {
		alert("function executing...");
		document.forms[0].submit();
	}

But it doesn't work.

I want to avoid using the windows-look&feel buttons.

Can somebody please help?

Thanks, David

  Return to Index