SEO Software
Closed Thread
Results 1 to 6 of 6

Thread: Email Validation in javascript

  1. #1

    Default Email Validation in javascript

    Can any one tell me how can we validate email in the javascipt.?please tell me, I need it.


  2. SEO Software

  3. #2

    Default

    Firstly, No. If you can't find something that common on google then you honestly don't need to know. (try typing it in on google... "validate email with javascript")

    2nd, Don't. Javascript runs in the web browser of the person visiting the website meaning it's running on the client side. The javascript is also visible to the user and can be modified by the user. Any validation you do in javascript can be overridden by a talented user.

    Do your validation in a server side script such as php, ruby, python, asp, perl, etc..

    You can still do validation in javascript so that you can inform the user before he submits the form that his email address isn't up to spec, but you cannot trust this as validation. It's a nice courtesy to the user though.

    Here are your two lessons for the day..
    Don't trust client side data!
    Try google before you ask questions in the forums.

    Please also refrain from phrases like "I need it" - it makes it sound like you're demanding we give you the solution (that is all over google should you choose to query for it there)

    Peace.

  4. #3
    Fulltime Member viraj_zaveri is on a distinguished road viraj_zaveri's Avatar
    Join Date
    Apr 2009
    Location
    GUJARAT,INDIA
    Posts
    744
    Thanks
    192
    Thanked 44 Times in 42 Posts

    Default

    No,you won't be able to validate your e-mail using javascript.
    There is no technique to do so.
    I've searched a lot,but haven't found anything.

  5. #4

    Default

    No,you won't be able to validate your e-mail using javascript.
    There is no technique to do so.
    I've searched a lot,but haven't found anything.
    What were you searching for and how?

    If you follow my previous suggestion
    (try typing it in on google... "validate email with javascript")
    you'll find dozens of examples. I'd post the link here for you but I require more posts before I can provide a link in my post.

  6. #5
    Fulltime Member viraj_zaveri is on a distinguished road viraj_zaveri's Avatar
    Join Date
    Apr 2009
    Location
    GUJARAT,INDIA
    Posts
    744
    Thanks
    192
    Thanked 44 Times in 42 Posts

    Default

    ok i'll be waiting for that.

    I'll check back soon.

  7. #6
    Fulltime Member Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan has a reputation beyond repute Alan's Avatar
    Join Date
    Jan 2009
    Location
    Ayr. Scotland
    Posts
    766
    Thanks
    26
    Thanked 62 Times in 57 Posts
    Blog Entries
    1

    Default

    There's lots of useful scripts available. I assume your checking the email entered on a form. Try this The JavaScript Source: Forms: Email Validation - Basic.


    Seen a good post - give some reputation
    Keeping the forum clean - SPAMMERS BEWARE!!

Closed Thread

Similar Threads

  1. Replies: 9
    Last Post: 04-27-2010, 07:16 AM
  2. Javascript for Mouse trail
    By urvisoni in forum JavaScript Help
    Replies: 2
    Last Post: 10-17-2009, 03:59 AM
  3. Javascript syndication... does it yeild seo value???
    By decipher in forum JavaScript Help
    Replies: 2
    Last Post: 02-12-2009, 07:48 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts