Geekpedia Programming Tutorials






Tutorials and Code JavaScript Tutorials and Code

1 2 3
(36 tutorials and code in 3 pages)
Latest Tutorials: RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Latest Code: RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Tutorial

*****
4.11 from 9 votes

Apr 6th 2004
by Andrew Pociu

Introducing loops

Teaches you the loops in JavaScript. Each loop has its prototype and a simple example showing you how to use it.

Code

****-
3.5 from 4 votes

Jan 8th 2008
by Andrew Pociu

Submit form on selection of dropdown item

This example code addresses a popular need to have a form submitted on the selection of a value from a dropdown control.

Tutorial

*****
4.44 from 9 votes

Mar 25th 2004
by Andrew Pociu

Introducing operators

You’ll get familiar with JavaScript's operators. Assignment operators, arithmetic operators, comparison operators, logical and conditional operators...

Code

-----
No votes

Jan 6th 2008
by Andrew Pociu

Swap string case using JavaScript

The SwapCase function turns lowercase characters into uppercase and uppercase characters into lowercase.

Tutorial

*****
4.34 from 12 votes

Mar 8th 2004
by Andrew Pociu

JavaScript identifiers

You will learn the meaning of identifiers and basic rules. It's good to know before you start to learn variables.

Code

-----
No votes

Dec 16th 2007
by Andrew Pociu

Trim leading and trailing spaces

Three functions that tream trailing spaces, leading spaces and both out of a string.

Tutorial

****-
3.3 from 10 votes

Mar 8th 2004
by Andrew Pociu

Starting a JavaScript

How do you tell the browser that a script is starting? Moreover, how does he know what kind of script is starting? What if the browser doesn’t support JavaScript?

Code

*****
4.75 from 4 votes

Nov 22nd 2007
by Andrew Pociu

Validate phone number using RegEx and JavaScript

A function to validate phone numbers using JavaScript and regular expressions. It will work with all valid US phone numbers in all popular formats.

Tutorial

*****
4.46 from 20 votes

Mar 7th 2004
by Andrew Pociu

An introduction to JavaScript

An introduction to JavaScript, how it was born, what is it good for, different types and versions of this scripting language, and the compatibility between it and the browsers.

Code

*----
1 from 2 votes

Nov 17th 2007
by Andrew Pociu

Check URL validity using JavaScript

The CheckValidUrl() function takes in an URL and checks whether or not it is valid by verifying it against a regular expression. Works for HTTP, HTTPS and FTP URLs.

Code

**---
2 from 1 votes

Nov 11th 2007
by Andrew Pociu

Check / uncheck all checkboxes in a form

One easy JavaScript function that will check or uncheck all the checkboxes in a form that's being passed as the first argument to the function.

Code

****-
3.67 from 3 votes

Oct 4th 2007
by Andrew Pociu

Convert a number from digits to words

A JavaScript function for converting numbers (21) to words (twenty-one). It works for numbers up to 999, but it can be transformed to support numbers in the thousands too.

Code

****-
3.75 from 4 votes

Oct 4th 2007
by Andrew Pociu

Add to favorites/bookmarks in Internet Explorer and Firefox

With only a few JavaScript lines you can initiate the dialog for "Add to Favorites" dialog in Internet Explorer and the "Add to Bookmarks" dialog in Firefox, as shown in this example.

Code

*****
5 from 2 votes

Sep 29th 2007
by Andrew Pociu

Trim leading and trailing spaces

A JavaScript function that uses a very simple RegEx rule in order to trim the leading and trailing spaces of a string.

Code

****-
3.33 from 3 votes

Sep 29th 2007
by Andrew Pociu

Strip HTML using JavaScript

A simple function that uses regular expressions to strip the HTML tags out of strings.

Code

*****
4.5 from 4 votes

Sep 19th 2007
by Andrew Pociu

Validating credit card numbers

This JavaScript function checks a text field for a valid credit card number through several validation methods.

1 2 3
(36 tutorials and code in 3 pages)
Filter Results
Show:


Latest IT Jobs


Other Resources
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons