# Wednesday, October 15, 2008

So after fiddling with JQuery for a while, I REALLY REALLY LIKE IT A LOT!!! I like how the whole library is built around the basis of the programmer basically saying "I like to find a bunch of tags which fall under these parameters and do something with it"

And that's pretty much what you do in a majority of clientside Javascript scenarios, either you'll be using Javascript to make some effects to alert the user to something (ie, change color, change size) or you'll just be using it to make your page look spiffier!

And basically that's what I have done in order to test out JQuery, I wrote a simple script and attached it onto my blog, now when the page finishes loading. The script will, using JQuery

  • Run through all A tags with a HREF that contains the words "/binary/WindowsLiveWriter" these are basically links to the full sized versions of images on my blog.
  • Replace the default behavior of clicking on those links so that clicking on them doesn't open a new window but instead.
  • Loads the full size image into a hidden image tag, then display it in place on the actual page itself so the user doesn't have to go through another window to see the full image.
  • And of course when the user clicks on the full image or anywhere in the void they get returned to the normal page.

And now of course.. for a sample.

DSC04383

Could I have done this without JQuery? ABSOLUTELY! Would it have been fun to do without JQuery? No. Would I have even considered doing it without JQuery? ABSOLUTELY NOT!!!

JQuery is definitely a library worth your time to check out and I wish I found out about it earlier!


Note that you can Post As GUEST as well.
blog comments powered by Disqus
Monday, October 20, 2008 9:54:46 PM (Malay Peninsula Standard Time, UTC+08:00)
Hmm, seem like I should try jQuery out on my next project. ;)
Comments are closed.