Saturday November 28, 2009
There are lots of places on the web where you can obtain JavaScripts that have already been written and where the author gives their permission for the script to be copied to be used on other sites. Some of these scripts have been recently written or updated and use all of the correct standard ways of doing things in JavaScript. Many of the scripts that you can find were written several years ago before the current standards were developed and were designed to run on browsers such as Internet Explorer 4. While these old scripts may still run on some more recent browsers there will certainly be lots of newer browsers where they will not work properly. With a few simple checks that anyone can carry out you can get a better idea of whether the prebuilt script that you have found is intended to run on modern browsers or whether it was written to run on browsers that date back to the twentieth century.
Choosing Prebuilt Scripts
Friday November 27, 2009
There are several different ways that an event handler such as
onclick can be attached into your web page to handle your visitors clicking on things. In this tutorial we look at those ways and which ways are most obtrusive and therefore are best avoided. We also look at an alternative way of processing that are less obtrusive including one of the best ways which doesn't use onclick at all.
onclick
Thursday November 26, 2009
All browsers now come with a popup blocker to block popup windows opened automatically by JavaScript. Unfortunately some are not as good as others at detecting the difference between an automatic and a requested popup window. By changing the way you code the JavaScript you can improve the chances that your popup window will make it passed the blocker when your visitor requests it.
Popups and Blockers
Wednesday November 25, 2009
It isn't only the start of a text string that we can validate for being one of specific values. In the twelfth validating forms tutorial we look at how you can apply the same sort of test to the end of the text.
Ending Values