Archive for the ‘Javascript’ Category

Publish2 JSON Feed Without A Plugin

Tuesday, March 9th, 2010

Need: A way to display the JSON data provided by Publish2 on a WordPress blog.

The Catch: I wanted to have multiple instances of the feed from different JSON data feeds on the post. Furthermore, each required unique items from its respective JSON feed and I wanted to style each instance differently.
(more…)

WordPress Location Search By Zip Code

Monday, February 22nd, 2010

Last week I completed a Worpress CMS conversion for a site that was running a custom Ruby on Rails CMS. Everything was pretty straightforward, only caveat was that they wanted to be able to search their 12K+ locations by zip code, paginate the results, and also display them as markers on a Google map.
(more…)

WordPress Calendar Plugin: Display Posts By Date & Category

Wednesday, February 10th, 2010

In my ongoing effort of not re-inventing the wheel, I spent hours upon hours looking through ALL of the available WordPress calendar plugins for a project that I had been working on.

My Needs:

  1. AJAX (required asynchronous navigation between months)
  2. Query posts by category (would be nice if I could select the category)
  3. Associate posts with their dates.
  4. Highlight calendar date when a post exists.
  5. A tooltip that would display post titles and link to individual posts (past, current, and future) when a highlighted date is selected.

Note: The tooltip would also allow me to display multiple posts per day should that be the case.
(more…)

Favorite Lightbox For Images and Video

Thursday, January 14th, 2010

Last year I was working on a project that was utilizing the jQuery Cycle plugin for a slideshow and I was struggling to find a compatible jQuery lightbox script which would play FLV videos hosted on the same server (with a built in media player). Unfortunately, the best one I came across was written in MooTools which would’ve led to conflicts. Worried that I would have to re-write the slideshow using MooTools or calling jQuery.noConflict() which I hate, I was relived when I stumbled upon Shadowbox.js, a lightbox style Media Viewer which was compatible with major JS frameworks like Prototype, jQuery, and MooTools. In addition to being incredibly easy to install (when compared to other lightbox scripts), it’s automatically adapts to whatever Javascript framework is being used! Best of all, no conflicts! It also does images, galleries, embedded video, and tons more.

Favorite Internet Explorer 6 PNG Fix

Friday, December 25th, 2009

Rarely will you find the words “Favorite” and Internet Explorer 6 in the same sentence…it has been the bane of my existence ever since I began in Web Development. If I had my way I would make it illegal to even run a copy of IE6…not a far stretch considering all the pain and suffering developers have had to endure over the years. One of the MANY issues plaguing IE6 is it’s inability to deal with transparent PNG images. Instead of listing out all of the PNG solutions available (there are dozens)…I’ll just let you in on what I’ve found to work best:

DD_belatedPNG

It’s not perfect but it has been an invaluable tool in this ongoing battle. Yes Javascript would need to be enabled, but at some point we need to take a stand and say NO to visitors that insist on running IE6 with JS disabled while viewing the site on a 15” 800×600 CRT monitor.