Play

Tags: jQuery

Display a Twitter Profile using YQL & jQuery

Post to Twitter

With YQL (Yahoo! Query Language), you can access data from multiple sources using a SQL-like language that lets you query, filter and join data. If you're already familiar with SQL syntax, using YQL should be fairly straight-forward.

select * from twitter.user.profile where id='screen_name'

Open external links in a new window using jQuery

Post to Twitter

The way people have typically opened external links in a new window is to use the attribute target="_blank" in an <a> tag. The problem is that in HTML/XHTML Strict, the target attribute is deprecated.

While you can still use the target attribute if you're using the Transitional DOCTYPE, best practice is to adhere to web standards.

Inline Messages

Post to Twitter

The Inline Messages Drupal module has replaced Inline Errors.

The major difference (and hence the name change) between the 2 modules is that Inline Messages lets you move any form messages (status, error, warning), where Inline Errors only moved form error messages.

Inline Form Errors

Post to Twitter

I've released my first Drupal module... Inline Errors.

In most Drupal themes, $messages is located at the top of your page.tpl.php. However on most sites, forms such as the comment form are located at the bottom of your page. So should someone submit a comment that has errors, they're kicked back to the top of the page and have to scroll back down to fix their submission.

i heart cycling