• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

verifying not working

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nit: be consistent. You use $.trim in one place and jQuery.trim in another.
 
reply
    Bookmark Topic Watch Topic
  • New Topic