• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

verifying not working

 
Allan Johnson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i have some code here and im very new to javascript. that is coded to verify proper email is inputted.. but it is sending me blank emails all the time..?? it does work if you just put askhgkhag and try to submit it and even if you put nothing it will return with invalid email. but im getting emails sent to my gmail that are just blank like this...


Octonber 11 (2 days ago)

to me
Email:

as you can see there is nothing in the email: part...

it is a simple one text input box that allows users to put their email if they want to subscribe to the newsletter. here is the code for the subscription box
found here www.teachntoysonline.com
maybe i need a question box to verify its not a robot?
any suggestions?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Your best bet is to use the JavaScript debugger and set a break point in the function. Step through it to see where it's not doing what you expect.

Chrome and Safari have a great built-in debugger. Firefox has the Firebug plugin. IE9 also has I debugger, I believe (but I'm not using Windows so haven't used it).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nit: be consistent. You use $.trim in one place and jQuery.trim in another.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic