Simple probably; javascript for form submission
linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Tue May 24 16:28:26 UTC 2005
Hi all,
I am trying to do something I expect is relatively simple. So far though
all the stuff I've found on the web have been far more involved or
complex solutions than I need.
Basically, in my web-based program I have several forms that need to be
submitted here and there. Currently I use '<input type="image"
src"...">' to keep the look the same. This works great. The problem is
now I am making my program translatable so the image that sayd, for
example, "Login" in english will look quite out of place if the user
switches to French or Japanese. :p
All I need/want is a simple javascript function that will let me replace
the image with normal text to submit a form. I know this can be done
with 'submit()' but I haven't yet been able to figure out how to
actually implement it.
I have a central 'tle-bu.js' file with all of my functions and different
forms have different names. So I need a way, I think, to tell the
function which form I am submitting. That's it. That's all I need. So
far most of what I have found on the web is built around form validation
which I don't need.
Thanks as always!
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