chapter31

development in a land far far away…

at the moment

History is not what happened. History is what was written down.

Archive for the 'Javascript' Category

Another tip from my Prototype travels…
‘Observers’ let you create a listener for a user event, for example on a form submission you may want to run some client side validation before actually submitting the form.
Of course you can add ‘onsubmit()’ in your <form> tag, but isn’t it much nicer to keep your markup clean of […]

Read the rest of this entry »

* Note: These examples reference the Prototype JavaScript framework.
Often I find that I want to load content onto a page but have its default view state as hidden until a user defined event makes it appear.
The problem is if I hide an element using a linked CSS file (with a class or Id style of […]

Read the rest of this entry »

I’ve been doing some JavaScript development with Prototype over the last few days and it’s been interesting trying to do things that I know how to do in jQuery, but in Prototype.
One of the cool things I like with all these JavaScript frameworks is the easy way they allow you to execute code on ‘DOM […]

Read the rest of this entry »

jQuery and SWFObject conflict

Friday, September 28th, 2007

I experienced some strange behaviour today when building a site which was using jQuery and SWFObject. Our Flash files were loading ok and 99% of the javascript (using jQuery) was working fine.
The problem was found only in IE (sound familiar?) with the following code:

$(document).ready(function(){

$(’#submitButton’).click(function(){

When the ’submitButton’ was clicked, this function was not firing in IE. […]

Read the rest of this entry »

The ‘coolest’ DHTML calendar

Sunday, March 25th, 2007

As web developers we are often some of the first people to see the newer techniques and tools available for use in web applications. This can be great as we can then hurry off and implement these things into our new projects.
But of course there are still millions of older sites (which will no doubt […]

Read the rest of this entry »