Saturday, September 4th, 2010
Just about all browsers have a find on page option in the menu and so adding an equivalent option using JavaScript may not appear all that useful. It doesn’t work completely the same way as the built in ones do though since it uses a separate browser window rather than a dialog box and therefore [...]
Posted in Golden Oldie | Permalink | No Comments »
Saturday, August 21st, 2010
This example of my cookie toolbox in action allows you to set up a web page on my site that links to your fifty favourite web pages. Your Favourites
Posted in Golden Oldie | Permalink | Comments Off
Friday, August 20th, 2010
Cookies are the main way of retaining information between one web page and the next and the only way to retain information between different browser sessions. Cookies are supported by both JavaScript and server side processing. Cookies are however limited in the amount of data they can store. Each domain can store up to 20 [...]
Posted in Golden Oldie | Permalink | Comments Off
Wednesday, August 18th, 2010
Unlike normal input text fields where you can specify a maxlength attribute, there is no HTML equivalent for textareas. Instead if we want to limit the amount of text that can be entered in the browser rather than just truncating the textarea after it is submitted we need to use JavaScript. Limiting Textarea Text
Posted in Golden Oldie | Permalink | Comments Off
Sunday, August 15th, 2010
Most programming languages have a really obvious way of assigning default values to function arguments for when that parameter is omitted. JavaScript has a not so obvious but far more flexible way of doing it. Default Values for Arguments
Posted in Golden Oldie | Permalink | Comments Off
Monday, August 9th, 2010
Everyone has to start somewhere and the best place to start with creating a web presence is with a blog or similar setup where you just need to plug in your content. To be able to take full advantage of the web though you’ll need to learn the languages that it uses. New to Web [...]
Posted in What's New | Permalink | Comments Off
Thursday, July 22nd, 2010
Defining a function in JavaScript is rather useless if you don’t actually make use of the function. In this second tutorial on JavaScript functions we look at how to call the functions that we have defined. How to Call a Function
Posted in Golden Oldie | Permalink | Comments Off
Friday, July 9th, 2010
The extended tooltip script places content in a “layer” above the main content of the web page. We can use that same technique to overlay other content on top of our main page for all sorts of other purposes. Overlay Messages
Posted in Golden Oldie | Permalink | Comments Off
Thursday, July 8th, 2010
A tooltip is the yellow box that most browsers display text in when you hover over an element in the web page that has a title attribute. Not all browsers display the title attribute as a yellow box to contain the text, some display the text in the status bar instead. The other limitation is [...]
Posted in Golden Oldie | Permalink | Comments Off
Thursday, July 1st, 2010
In the seventh and last tutorial on JavaScript functions we look at an alternative way of being able to add sophisticated JavaScript functionality into web pages without having to write much code yourself by using a pre-written library that includes most of the functionality that you require. Function Libraries
Posted in Golden Oldie | Permalink | Comments Off
Sunday, June 27th, 2010
In this sixth introductory JavaScript tutorial on how to use functions we look at how you can return a value from the function that will be substituted into the calling code in place of the call. Returning a Value
Posted in Golden Oldie | Permalink | Comments Off
Wednesday, June 23rd, 2010
Using JavaScript with drop down lists is not the most obvious of interactions to code. In this article we look at the JavaScript code needed to copy the entry selected from the drop down list into an adjacent input text field. It would of course be just as easy to use the value retrieved from [...]
Posted in Golden Oldie | Permalink | Comments Off