PDA

View Full Version : Anybody know whassup with this?


Rockrz
09-06-2002, 09:39 PM
My e-mail form works great! So installed a javascrip code to check and remind people to put in an e-mail address.
( here's the working page: http://www.atmscrip.com/merchant_contact.html )

Now, I tried to use this exact same set-up on another page, and keep getting error codes.

So, I took the above page that is working great and saved it under a different name, uploaded it, and still get the error code! How could that be?

Here's the URL of that page: http://www.atmscrip.com/contact_salesrep2.html

If anyone could drop me a tip on how to get this working properly, I would be most greatful. It's bugging the crap out of me as to why the exact same code works on one page, but not on another.

Nightfire
09-06-2002, 09:46 PM
I got no error. I just sent the form without putting any info in

Rockrz
09-06-2002, 10:17 PM
Well, it's been giving me an error message . . .

At any rate, my javascript is supposed to block you from being able send in the form unless you put in a valid e-mail address, so it's not working like it does on the other page (that I'm not having problems with)

boywonder
09-07-2002, 12:27 AM
In the first example you send the name of the email field to the function for validation, In the second example you do not. You send 'email' and the field is actually named 'Email Address'.

Word of advice: When asking for people to view your source to locate a problem lose the no-right-click script.;)

Rockrz
09-07-2002, 02:21 AM
I know why they call you the boywonder!
You are absolutely right. That was it!

Aparrently the javascrip code is written to look for 'email', and not 'Email Address'

Sorry about the no click. It wasn't on the second page, which was my test page I was working with.

I know, I know, I probably shouldn't be using it at all.

Thanks a million for the help!
I figured it was something simple, but couldn't seem to figure it out.

adios
09-07-2002, 03:37 AM
*Props* to the boywonder...:thumbsup:Word of advice: When asking for people to view your source to locate a problem lose the no-right-click script.

boywonder
09-08-2002, 01:22 AM
The javascript code doesn't care what you name the form element. When you pass it's value to the function however you must reference it properly. you know what I mean?

You can use a no-right-click all you want... what I meant to say was just get rid of it or at least comment it out for those times you ask people to go look through your code.

thanks for the :thumbsup: adios :)