The following PHP code parses the date portion out of a MySQL date column and lets you format it according to the formatting rules of the PHP date function. To use it, you can do something like this: (This prints 2009-09-15 as “Tuesday 15 September, 2009”). If you omit the second parameter on the function… Read More »
Feedback is a jQuery plugin that lets you send feedback to a user in the form of an info message or error message, associated with any page element. It uses the jQuery UI plugin to determine the default styles of the info and error messages, but you can also use your own styles. Complete details,… Read More »
How to restrict access to specific content in a Drupal site so only authenticated users (those who have logged in) can view and access it. (Short answer – install the ‘content-access’ plugin.)…
Firebug – debug your applications. An absolute must. Best features: Debugger – step through, over, etc. Console log for monitoring AJAX interactions -shows parms sent, data returned, round-trip time. Web Developer – fantastic CSS diagnostic support. Best features: View generated source – important if your script modifies the original DOM of your page Display Element… Read More »
Summary: Quirks of checkbox markup in HTML – differences between IE and FireFox…
This post explains how to set a group of checkboxes to checked or unchecked using jQuery 1.3, by clicking an “All” or “None” button. First, let’s select our group of checkboxes. I’ve seen some fairly complicated jQuery selectors for finding checkboxes on a page, but it seems to me the easiest thing to do is… Read More »
FireFox doesn’t have a native global event handler. Here’s how to create one using FireFox’s event-capturing model.
Firebug beta 1.0 is now available. This is by far the best toolbar available for FireFox or IE for debugging web applications. See This blog entry at Sitepoint for more details. A few of the features I really like are: The debugger – identifies exact line of script in error. The HTML view – lets you view… Read More »