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 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.
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!