Home page
Latest Releases
And just for fun:
A random Bushism!
"The ambassador and the general were briefing me on the - the vast majority of Iraqis want to live in a peaceful, free world. And we will find these people and we will bring them to justice."
George W Bush
Washington DC, 27/10/2003
jQuery
Author: John Resig
"jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript."
I've been using jQuery for sometime it has totally changed the way I work. I was never a fan of javascript and using to enhance sites was something I found to be a pain in a.. BUT the more I use jQuery the more I love it, Its got loads of the "Web2.0" bells & whistles but more importantly for me is the ability progressivly enhance the functionality (HIJAX) without creating a page thats unusable with javascript turned off..Brad
Resources
http://docs.jquery.com/ jQuery Docs a great place to start
http://code.google.com/p/jqueryjs/ Latest jQuery Code
http://visualjquery.com/
http://remysharp.com/jquery-api/
http://jqueryfordesigners.com/
Useful Code Snippets
Adding a "Print" link to a page is something a lot of people find useful. (I won't go into the merits of just pressing the browser print button) but as this is javascript only functionality hijacking a link just won't cut it. So the the link itself needs to be added using javascript. This is often done using the tried and true "ugly" way
<a href="javascript:window.print()">Print this page</a>
Using jQuery this can be replaced with
Javascript
if(window.print) $(".print").append('Print This Page').click(function() { window.print(); } );
CSS
.print{cursor:pointer; text-decoration:underline; font-weight:bold}
This can be placed in the head of the page or at the bottom
