aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes verifying not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "verifying not working" Watch "verifying not working" New topic
Author

verifying not working

Allan Johnson
Greenhorn

Joined: Oct 13, 2012
Posts: 1
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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).


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Nit: be consistent. You use $.trim in one place and jQuery.trim in another.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: verifying not working