A programmer's paradise created by the twist of deliberated fantasies, and actions of a determined imagination.
Follow ME:
www.linkedin.com
...
If you would like to make an appoinment, contact ME directly via my email address at tuso@programmerspride.com.

Add to Google
Single-Batch Multi Uploader (FLASH)
The extended way of normal upload. You can select multiple files that you can browse from a single or multiple directories. All files that a ...

The JavaScript's parseInt() function with decimal numbers

When performing mathematical operations to decimal numbers, don't forget to validate the User input by the use of parseInt().

The syntax is parseInt(string, radix);

The second argument is optional, however in decimal this is very important. Forgetting to set the radix to base 10 won't correctly convert '08' to 8 and '09' to 9.

<script text="text/javascript">

var string = '08';
parseInt(string, 10);

</script>