Instant AJAX on your site

I went back to the music section, and redid the AJAX code I used. I remembered the Prototype library (prototype.js) I was using for the lightbox had its own AJAX object class – which was much more comprehensive than my implementation (error handling, browser support, etc).

I thought that since I was already using the framework anyways, might as well redo my functions altogether to utilize it. While the documentation had example codes, like any other site, I noticed that usually they always include a fixed “target” in the function. Meaning if you have a certain AJAX operation you wish to perform, the function usually took in the URL which you specify, but plugs it into a set target. While this is easily fixed, I was simply baffled as to why they don’t make it a standard to “assume” people would want at least to specify both the url and target as a default.

So I came up with code which I dubbed “InstA-JAX” to do just that. I’m sharing it here since I figured that anyone I know who is remotely interested in implementing rudimentary AJAX functionality might find it very useful as it doesn’t require them to “think” anymore hehehehe. – just plug it in, markup your HTML the proper way and you should be good to go.

Read More

Lightboxing and Flickr

NOTICE
CONTENTS NO LONGER APPLICABLE

The content discussed in this post is no longer valid; as I’m now using a different “lightbox” implementation.
More here

JC made me check out his installation of a cool WordPress plugin that does lightboxing. I decided to apply the same stuff in my blog – and modify it a bit to be able to link to the image’s Flickr page somewhat dynamically.

Results

If you’re not interested in the details, then just spot the difference between these two lightbox-enabled links (I just hope it does work as I intended it to).

Here’s an image which I linked to Flickr

Here’s an image which I linked to the Gallery within my domian

LINK REMOVED (as the old gallery doesn’t exist anymore)

If you noticed the difference, and are interested in how I did that – read on… Read More