Sponsored Links


Other Topics
Sponsored Links



Quote of the Day

"He has a profound respect for old age. Especially when it's bottled."

Gene Fowler

FEATURED
INTERNET
PRODUCTS
 
Fast Domain Riches
 
Domain Traffic Income Domain Investing...
 
Unlock The Money Making Secrets With Domain...
 
Domain Auction Profit
 
Beyond Domaining - Rapid Domain Name Development...
 




 


Google


Warning: fopen(stopka/index.php) [function.fopen]: failed to open stream: No such file or directory in /stopka.php on line 117

Warning: fopen(stopka/6655d922aa2c1bbb44b556c10262be35.txt) [function.fopen]: failed to open stream: No such file or directory in /stopka.php on line 117


 
Featured Javascript Articles

Html : A Way To Make Your Site Speaks
If you happened to be a beginner of creating website, then learn HTML.. A lot of resources on the net where you can learn to create your site easily. www.Webmonkey.com Step by step tutorial from simple HTML to advance HTML scripting. ...

Making the most of your webserver
When a company has a site they wish to host somewhere, especially small businesses with limited funds, they normally take advantage of special rates available from a hosting provider. There is nothing wrong with that, but it can cause some problems later ...

Search Engine Optimization
While it can be spelt a variety of ways, agreement after that can be difficult. It is a business to some, and understandably, they extol their own theories. However, search engine optimisation doesn't have to be complicated beyond the reach of the average ...





Validating Numerical Input with JavaScript
 
What? Make a mistake entering data? Who me? NO WAY! Right.

Every form of data input by a user should be validated in some form or fashion. If you get

clean data in, you won't get garbage out. This tutorial is going to explain how to validate

numerical data entered into a form using JavaScript.

First, let us begin with the code to insert the JavaScript into your HTML document.

Place these lines between the and tags.

This line tells the web browser to expect some JavaScript code and signal the beginning of

the script:






Now on to validating the numerical input.

First we will create a function with one arument:

function validate(mydata){

These lines will test for a blank enty then prompt the user for input:

if (mydata == "){
alert("Please enter a number.")
}

Next we will create a for loop which will look at each character in the data until it

reaches the end:

for(var i=0;i < mydata.length;i++){

Now create a variable and assign the counter variable value to it:

var mydigit = mydata.charAt(i)

To screen out symbols, punctuation, and letters, place an if statement in the loop:

if(mydigit < "0"

Javascript News



Google Now Searches JavaScript
iProgrammer
A big problem is how search bots deal with dynamic content - and JavaScript/Ajax is a tough one to solve. For example, you could have a page that never used a URL to move to another page but simply refreshed its contents either every so often or when ...


WSO2 to Present Technical Webinar on Using Jaggery as a Server-Side JavaScript ...
San Francisco Chronicle (press release)
WSO2 webinar on May 31, explores how Jaggery provides an intuitive pure JavaScript server-side scripting engine for flexible Web application development and deployment Palo Alto, CA (PRWEB) May 24, 2012 Developing a Web application today is like ...

and more »

The Virginian-Pilot

Teen admits to Chesapeake attack on ex-NFL player
The Virginian-Pilot
In order to get the best experience with our full-size images, you should enable JavaScript in your browser. Ed Beard, a South Norfolk native and high school star, played for the San Francisco 49ers. Ed Beard, 71, suffered a concussion, ...

and more »

Sydney Morning Herald

Billy Slater and Storm show Broncos why they are still No.1
Herald Sun
Video Video Video Image Please install the latest Flash player [To view Flash please enable JavaScript and Flash.] Please install the latest Flash player [To view Flash please enable JavaScript and Flash.] Please install the latest Flash player [To ...
Anthony Griffin laments poor performance as Storm thrash Broncos 34-10 at AAMI ...Courier Mail

all 60 news articles »

Park of Animatronic Dinosaurs Opening in NJ
ABC News
Javascript is not enabled on your browser. Please enable javascript to use the community features on this page. If your browser does not support javascript, please visit our browser upgrade page for a list of supported web browsers.

and more »