www.webdeveloper.com
Results 1 to 8 of 8

Thread: Javascript number alerts

Threaded View

  1. #1
    Join Date
    Apr 2010
    Location
    Charlotte,NC
    Posts
    4

    Thumbs up Javascript number alerts

    While working on a javascript issue for our project, we notice the strange behavior of integers and strings.We were about to validate numbers that starts with 000123852 as our application stores the product id like this.while validation for the overall length of 9, the value suddenly changes to a random number 342391.

    Later we identified alert(000123456); in the javascript console, we will find a random number 42798 .Finally we passes the numbers as strings.

    Can anyone please explain, why this mysterious behavior happens.

    regards,
    Jude
    http://www.genlinux.org
    Last edited by judearasu; 10-05-2011 at 01:12 PM. Reason: Did provide the spec

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles