March 26th, 2009 at 17:49 (ASP.Net, jQueryUI)
One of the things I love about jQueryUI is the fact that it can generate a download based upon one of several great-looking themes. This rolls up all the images and CSS into a single zip along with a customized JavaScript file. This is awesome, but what happens if I want to grab multiple themes, drop them into an ASP.Net website, and be able to switch between them?
Read the rest of this entry »
Comments Off
July 30th, 2008 at 22:28 (JavaScript, jQuery, userscripts)
With the ideas, help, and suggestions of some very smart folks, I’ve been able to put together a userscript that displays whether jQuery is used on the current page—along with version—and can also load jQuery into the current page by clicking the indicator if jQuery is not already present.
Read the rest of this entry »
1 Comments
November 2nd, 2007 at 15:40 (JavaScript, Regular Expressions)
I had to search my desktop files and email history for forty minutes before I turned this up:
var rfc2822 =
/^[\w!#$%&'*+/=?^`{|}~-]+(?:\.[\w!#$%&'*+/=?^`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])*)+\.(?:[a-z]{2,4}|museum|travel)$/i;
That’s a JavaScript variable declaration, but the RegExp is valid for Perl and can be quickly translated for other languages.
1 Comments