Simple probably; javascript for form submission

linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Tue May 24 17:22:35 UTC 2005


> I forgo the use of the input tag with type submit. This becomes to hard to
> manage when dealing with mutiple languages.
> Instead I use something like this (this example is from my Login page):
>    <form name="login"  action="/DocRoot/servlet/LoginServlet">
> 		...
> 	<td align="center" background="/DocRoot/HTML/images/loginbttn.jpg" >
> 		<a href="javascript: doSubmit(document.login)" >
> 			Log In
> 		</a>
> 	</td>
> 		...
> 	</form>
> Where
> 	1) loginbttn.jpg is the image of a blank button, i.e. no text
> 	2) doSubmit is a javascript routine that submits the form
> 	3) document.login is my form (I'm using the Document Object Model
> (DOM) here)
> 	4) "Log In" is the text for what would be my submit button
>
> I use an HTML table for my layout
>
> Jim.

  Thanks for the reply, Jim!

  What is the 'doSubmit' routine? I just get an 'Error: doSubmit is not
defined' error in Mozilla when I tried to run it with just the html
(though I wasn't surprised). :p

  Thanks!

Madison
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list