Category Archives: jQuery

Using jQuery and JSONP to Get AIM Status

For a new site, I wanted to have a DIV's background image be dependent on the online status of an AIM user. jQuery and the AIM Presence API make it easy.

First, the code:

$.getJSON("http://api.oscar.aol.com/presence/get?k=key&f=json&t=aimuser&c=?",
   function(result){
      if (result.response.data.users[0].state == 'online') {
       $("#status").css("background-image", "url('online.jpg')");
 …

Using jQuery to Skip the TinyMCE Editor Toolbar When Using the Tab Key

Problem: When using TinyMCE, the toolbar buttons (as well as one A tag w/no content used for a tooltip) are part of the tab order of the page so tabbing out of one control into the editor means tabbing through…

Using jQuery to Show Flash on First Page Load in a Session and Show an Image on Successive Loads

This may be the longest title of a blog post I've ever written. Anyway, a friend of mine is designing a site and wants to show a Flash header/menu on the first load of a page within a site but…