James:
Look, we need to talk. Your taste in music is really great and your friends are cool, but we’re having some issues. No, it’s not that I caught you watching reruns of Days of Our Lives when I got home from work early yesterday (but that doesn’t help); it’s… well, it’s your JavaScript hygiene in Drupal 7.
Posted 09/12/2011 - 08:41
// 8 comments
Josh:
Many javascript libraries, including the almost ubiquitous jQuery, provide an element.ready function. This allows for queuing functions to run when the document or element is ready to receive commands.
Posted 07/21/2010 - 10:35
Tirdad:
There's really no reason you should need Javascript to preload images when it can be done with a little CSS.
Posted 06/18/2009 - 12:28
Irakli:
Drupal6 introduced new ways of working with jQuery, the primary Javascript library for Drupal. Unfortunately, the documentation for it is almost completely missing, which makes writing proper Javascript/jQuery in Drupal challenging for newcomers. This is a very quick intro for people new to Drupal or trying to migrate Javascript code from Drupal5 to Drupal6.
Posted 05/03/2009 - 16:00
// 2 comments
Jed:
It's pretty simple to create a select list for inline edits similar to the text field provided by the Rails plugin InPlaceMacrosHelper.in_place_editor().
Posted 03/19/2009 - 15:21
Frank:
Thanks to the nudging from irakli and drewish, I finally made the node protection javascript I blogged about here into a module called Node Edit Protection. As it says on the module page, it is a very simple JavaScript based protection that will alert a user if they are navigating away from a modified Node Edit form without saving. It uses a standard JavaScript confirm dialog that allows the user to either continue what they were doing, or cancel the move allowing them the opportunity to save. It marks the form as dirty by using the blur event of the node fields. Enjoy!
Posted 12/05/2008 - 15:58
// 1 comment
Andrew :
Semantic Web, a specification born in the 1980s, has had a tumultuous history, to say the least. Lately, it has been undergoing a renaissance period, with great renewed interest and large internet voices beginning to herald the technology. The National Institute of Health, MIT, and Yahoo are all among a growing industry push for Semantic Web. Given the publicity surrounding Semantic Web, I thought I would take a moment to delve into why you, too, should be sitting with ears perked for news on Semantic Web.
Posted 10/21/2008 - 12:42
Jed:
Making use of the code from Part One
Posted 10/20/2008 - 12:16
// 3 comments
Jed:
It is pretty easy construct a JQuery-based event trigger result analogous to the dojo stuff that comes with Struts2 /WebWork 2.2.x
Posted 10/06/2008 - 12:10