blog

Aug 29 2010

Use JavaScript encodeURIComponent function instead of escape for your Ajax application

by Anya Petersen

Passing variables from JavaScript to a server side language like PHP is a common task at the heart of many Ajax applications. Since the variable will be passed as either post data or a query string, it's important to encode the variable such that it can be decoded correctly...

Mar 05 2010

Quickly create template elements using drupal_get_path_alias()

by Joseph Smith

Often, when creating themes in Drupal, I find myself asking "is there a better way to add this <body> class or <h1>...