Random Tip Maker
Saturday May 31, 2008
You don't have to learn any JavaScript in order to use it.
There are plenty of JavaScripts around that can be plugged straight into your web page and work. Others need ... Read More
Compressing JavaScript
Friday May 30, 2008
JavaScript can modify your JavaScript for you
When you write your JavaScript you should lay it out all nicely with loads of spaces, indentation, and comments. This makes it easier to ... Read More
Show Cookies
Thursday May 29, 2008
JavaScript can run from the bookmarks menu to help you see what the JavaScript in the web page is doing.
With this JavaScript bookmarklet you can easily find out if a ... Read More
Ajax and Security
Wednesday May 28, 2008
Just how secure is Ajax?
The fifteenth tutorial on Ajax looks at the security issues associated with using Ajax. An Ajax application can be just as secure as any other computer ... Read More
Double Bar Menu
Tuesday May 27, 2008
There are all sorts of different menus that you can add to your page with JavaScript
The double cross bar menu is one that is popular with some sites. Selecting an ... Read More
JavaScript and Forms
Monday May 26, 2008
Unobtrusive form validation is possible
In this twenty third modern JavaScript tutorial we look at how to redesign the way that JavaScript interacts with forms so as to make all of ... Read More
Drop Down List Validation
Sunday May 25, 2008
Dropdown lists are very easy to validate with JavaScript
Since the only possible values that a drop down list can have are the ones that you code into the list, the ... Read More
JavaScript and HTML Tidy
Saturday May 24, 2008
HTML Tidy can mess up your JavaScript code.
Running HTML Tidy is a good way to tidy up your HTML and correct a lot of the minor errors it may contain. ... Read More
Mouse Cursor Position
Friday May 23, 2008
JavaScript does have some access to things outside of the web page.
Some JavaScripts, animations in particular, need to know where the mouse cursor is on the page. Different browsers provide ... Read More
Upper and Lowercase Conversion
Thursday May 22, 2008
Convert to the upper and lower case combination you require with JavaScript
JavaScript itself is case sensitive. All JavaScript reserved words, DOM references, and event handlers etc all have to be ... Read More
Caching of Requests
Wednesday May 21, 2008
Many people misunderstand the real difference between GET and POST
One problem with using GET requests with Ajax is that such requests were designed to retrieve static information. This means that ... Read More
Unobtrusive Collapsible Menus
Tuesday May 20, 2008
Collapsing menus when not required saves space on the web page
I wrote my original collapsible menu script some years ago before making JavaScripts unobtrusive became practical. A recent request from ... Read More
Collision Proofing JavaScript
Monday May 19, 2008
Properly written JavaScripts will not interfere with each other.
In this twenty second modern JavaScript tutorial we look at how you can not only make your JavaScript unobtrusive so that it ... Read More
Radio Button Validation
Sunday May 18, 2008
One of the easiest form fields to validate in JavaScript (but the one that gives many people the most trouble) are radio buttons.
In this tutorial we look not only at ... Read More
First Focus
Saturday May 17, 2008
JavaScript can help your visitors start filling out a form without having to use their mouse first.
What normally happens when you add a form to your web page is that ... Read More
Testing Colours
Friday May 16, 2008
JavaScript irons out browser differences
Testing what colour or background colour part of your page is set to is not as straightforward as it ought to be. When you use JavaScript ... Read More
Mathematical Arrays
Thursday May 15, 2008
JavaScript allows you to add your own classes and objects
If you have several arrays that contain numbers and you want to make working with those arrays easier then take a ... Read More
Multiple Requests
Wednesday May 14, 2008
You can submit a second Ajax request before the first returns provided you code it the right way.
In all of the preceding Ajax tutorials we have looked at how to ... Read More
JavaScript Execution Order
Tuesday May 13, 2008
Which piece of JavaScript runs when?
To someone experienced with using JavaScript it is really obvious which parts of the code will be run at what stage in the processing of ... Read More
Creating Objects
Monday May 12, 2008
JavaScript is a prototyping language.
You are not limited to just those objects that JavaScript has already defined or even to extending those objects (which would allow you to create objects ... Read More
Introduction to Form Field Validation
Sunday May 11, 2008
One of the first types of JavaScript you are likely to need to write for yourself is to validate a form.
Before we start looking at how to validate form fields ... Read More
Watermarking Images
Saturday May 10, 2008
Don't rely on JavaScript to protect your images!
The only effective way to protect images on your web site is to watermark them. Find out why this method works while the ... Read More
Alternatives to "eval"
Friday May 9, 2008
Some JavaScript commands are so inefficient and so rarely needed that you have to wonder why they are included in JavaScript in the first place.
"eval" is one of the most ... Read More
What JavaScript Cannot Do
Thursday May 8, 2008
Use the right tools for the job. While it is possible to put screws in with a spanner a screwdriver works far more effectively. Of course that screwdriver wont help ... Read More
Aborting Ajax
Wednesday May 7, 2008
Sometimes when waiting for an Ajax response the situation changes so that you no longer need it.
Since Ajax is normally run asynchronously where we don't wait for the response to ... Read More
HTML Comments and JavaScript
Tuesday May 6, 2008
What happens when you include HTML comments inside your JavaScript?
When JavaScript was first introduced, only Netscape 2 supported it and so it was necessary to hide the JavaScript from browsers ... Read More
Extending Objects
Monday May 5, 2008
When JavaScript doesn't provide the method you need you can add it yourself.
In the last few modern JavaScript tutorials we have looked at the many different objects that JavaScript defines ... Read More
Putting it all Together
Sunday May 4, 2008
If you have been following the original series of JavaScript tutorials over the last 30 or so weeks then you now have a basic knowledge of JavaScript.
The final tutorial in ... Read More
Lotto Picker
Saturday May 3, 2008
JavaScript has powerful array functionality.
Sometimes just a few lines of JavaScript can do quite a lot. Many countries these days have some sort of lottery or lotto or pools (or ... Read More
Body Mass Index Calculator
Friday May 2, 2008
JavaScript can create all sorts of calculators, You just need to know how the calculation is done.
When someone enters their height and weight into this JavaScript calculator then they will ... Read More
Interest Rate Converter
Thursday May 1, 2008
JavaScript can handle both simple and complex calculations.
The loan and repayment JavaScript calculators use the "nominal" interest rate which the lender divides by the number of times it is to ... Read More

