RE: Form submission and Javascript

by Rebecca Campbell <rcampbel(at)standard.com>

 Date:  Fri, 1 Oct 1999 12:16:29 -0700
 To:  "'Rajnish Bhaskar'" <9705228b(at)student.gla.ac.uk>,
hwg-basics(at)mail.hwg.org
  todo: View Thread, Original
you're better off using:
	<input type="Button" value="Sign my Guestbook!" onClick="setName()">

and then in your setName() function, you should have:

	formName.submit();

in IE4, if you don't capitalize Button, you will have many headaches, lose
much hair, sleep, and probably all of your friends trying to get your form
to submit.  also, your dog won't like you anymore.

-rebecca
http://www.nerdygirl.com


-----Original Message-----
From: Rajnish Bhaskar [mailto:9705228b(at)student.gla.ac.uk]
Sent: Friday, October 01, 1999 10:08 AM
To: hwg-basics(at)mail.hwg.org
Subject: Form submission and Javascript


Hi all, 
	thanks for help with my cookie problem, now I was just wondering if 
someone could tell me whether the following line will work.  I want to be 
able to submit a form and execute a javascript function (called setName 
in this case) at the same time:

<input type="submit" value="Sign My Guestbook!" 
onClick="setName();">

And, just on that cookie thing, is the expiration date of a cookie set in 
seconds?

Thanks,
Raj.
------------------------------------------------------------------
__        __
|   |	|   |   Rajnish Bhaskar, University of Glasgow
|_ / 	|_ /   E-Mail: rajy(at)i.am
|   \	|   \   Home Page: http://i.am/rajy
|    \	|__/   
Happiness, Happiness,
The greatest gift that I possess,
I thank the Lord that I've been blessed,
With more than my share of happiness.

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.