Tuesday, September 30th, 2008

Overlay Messages Revisited

Continuing on with revisiting old scripts and updating them. The script that is most similar to my tooltip script (and therefore needed almost identical changes) is my overlay messages script. As with the tooltip script I have included both the old and new versions of the script so that you can see the differences between [...]

Monday, September 29th, 2008

Extended Tooltips Revisited

Now that the really old browsers that pre-date the standards have almost no one using them any more the scripts that we wrote a few years ago can be made a lot simpler. The references to document.all and document.layers (and useragent tests for Netscape 4 to get around the bug that stopped feature sensing for [...]

Thursday, September 25th, 2008

Purchasing HTML Source Protection

It is amazing how many sites that there are selling products to protect the HTML source of your web page. The surprising thing isn’t how many different products that there are available in this market with prices ranging from free to several hundred dollars. The surprising thing is that such products are sold in [...]

Wednesday, September 24th, 2008

Regular Expressions

Regular Expressions are a standardised way of being able to manipulate text to match and replace the content based on patterns. There are quite a lot of different programming languages that support regular expressions including PHP and PERL (along with many other server side languages) and JavaScript also supports most of the same regular expressions [...]

Thursday, September 18th, 2008

Using the Cookie Toolbox

The cookie toolbox that I created goes well beyond just being able to read, write, and delete cookies. It contains code making it easy to save entire arrays into a single cookie and to be able to easily update the array that you have stored in the cookie. This tutorial describes many of the additional [...]

Wednesday, September 17th, 2008

Passing Parameters using Cookies

Handling cookies from JavaScript is much easier once you have written functions that take care of reading, writing, and deleting cookies. To provide maximum flexibility in being able to use cookies I wrote a set of these functions that allows entire arrays of data to be stored within a single cookie if you need to [...]

Tuesday, September 16th, 2008

JavaScript Math Object

Don’t be put off by the fact that the Americans who defined this part of JavaScript do not know how to spell using proper English and misspelt maths. This static JavaScript object provides all of the most common irrational number constants as properties and all of the common maths functions as methods allowing you to [...]

Monday, September 15th, 2008

JavaScript Strings

JavaScript is extremely powerful when it comes to being able to manipulate text. The variety of methods available to find, change, extract, insert and otherwise manipulate text in JavaScript cover just about everything you are likely to want and you can easily add your own methods to cover things that have been left out.
JavaScript Strings