jquery archive
HRA/SPH
Why HTML5 Makes Sense for Business
by Joaquin Lippincott, President & Founder
There's a lot of buzz from developers about HTML5, but what does it really mean to business? I look at in terms of... Read More…
Revenge of the node comments: a pure jQuery comment pager
by Dylan Tack, Lead Development Architect
A previous post described how to reposition node comments with Drupal's hook_menu_alter(), to facilitate a tabbed interface. One side effect that popped up was pagers – when a pager link was clicked, the tab state got reset. The solution was to refresh the #comments div with AJAX. As an interesting twist, it uses the ability of jQuery's $() to construct a new DOM object from HTML. This means that no new menu callback is needed in Drupal; it fetches the comments directly from the href in the pager link. While a little inefficient, this technique has the cool benefit of being able to grab any content from anywhere on your site, with merely a URL and a selector. It also degrades gracefully for non-javascript users; since without JS the tabs appear as sequential blocks the pager will function normally. (The following code is based on the AJAX Comments project). Read More…
Customizing views_cycle module for differently styled marquees
by Koes Bong, Font-End Developer
During the theming process for the Emmys, specifically Emmys.com and Emmys.tv, we were presented with 2 differently styled marquees. On Emmys.com, the pager uses an image, while on Emmys.tv, the pager uses number with a background image along with next/previous buttons. Read More…
Drupal/AJAX: Exercise caution when using special foreign characters
by Barrett Olafson, Director of Production
I was recently working on a Brazilian Drupal 6.x site that uses CCK forms and needed some functionality to map a dropdown select list of states to another dropdown of cities in the chosen state, which I accomplished using a combination of the drupal_json function, as well as jQuery and AJAX, hooked into the drupal menu system. I learned how to use this functionality quite easily from Pro Drupal Development Chapter 17 - Using jQuery and have implemented it on a number of sites to date. Pro Drupal Development is definitely worth having as a desktop resource. Read More…