IMPORTANT: Please read this blog post before updating. The latest version, by default, breaks compatibility with previous versions! I am happy to announce that dialogWrapper 2.1 has been released! Download/read about it at BitBucket: https://bitbucket.org/MostThingsWeb/dialogwrapper What’s new? The biggest change is that all methods are now namespaced! For example, instead of writing: … by default […]
Category Archives: JavaScript
jQuery Deconstructed
I really enjoy exploring jQuery’s source code. Recently, I’ve been using James Padolsey’s jQuery Source Viewer. It’s a really neat tool that lets you type in the name of a function (even if it’s an internal function!) and view its source. Just today, I’ve discovered a different tool/series called JS Libs Deconstructed. Not only will […]
wrapDetector: Automatically detect word-wrappable characters
I’d like to announce my latest plugin: wrapDetector. wrapDetector is designed to do one thing: return a list of characters at which a line can wrap. I’ve created the project at BitBucket: https://bitbucket.org/MostThingsWeb/wrapdetector. If you find it interesting, give it a try. I look forward to hearing your feedback and suggestions.
Converting CSS selectors to XPath selectors with C#: css2xpath
While working with HtmlAgilityPack to build a web scrapper/crawler, I noticed something: I hate XPath. It’s big, clunky, and verbose. After a bit of searching, I found a neat online app: http://css2xpath.appspot.com/. As the name suggests, it converts CSS selectors to XPath selectors. The only problem is that I wanted a client-side solution. A little […]
Bayes Filtering in Javascript
I’ve been trying to put together a Bayesian classifier in JavaScript, mostly for spam filtering purposes. It didn’t turn out very well. So, I Googled for such a thing and found this: http://www.onemanclapping.org/2008/10/bayes-filtering-in-javascript.html. It looks very well done and I’d recommend it (from the brief testing I’ve done with it), although I’d like to point […]
Textarea Line Count: jQuery Plugin
Project Moved This project has moved to BitBucket: https://bitbucket.org/MostThingsWeb/textarea-line-count
dialogWrapper- Simplified use of jQuery UI Dialogs
The jQuery UI Dialog widget is, in my opinion, one of the most useful widgets in the jQuery UI toolbox. However, that doesn’t mean it can’t be improved. To use a dialog, you need to add HTML to your page that represents the dialog and its content, and then use JavaScript to initialize it and show it.
Using Facebox in Greasemonkey scripts
In my Greasemonkey scripts, I sometimes find it necessary to alert the user in some way without using the alert() function. In any other web application, I would normally use Facebox, a wonderfully free jQuery plugin that displays Facebook style pop-ups. However, there are several obstacles to adding any (well, most) jQuery plugins to Greasemonkey […]