About the author

Steven Harmansteven harman :: makes sweet software with computers!

For recent posts and more about me, scroll to the bottom.

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

News

Badges

  • Subtext Project
  • Support Subtext

javascript

There are 8 entries for the tag javascript

A Handful of Great jQuery Articles…

… that have helped me improve both my understanding of JavaScript, and my jQuery-Fu. General Goodness Custom events in jQuery open doors to complex behaviors Six Things Every jQuery Developer Should Know How to Create Your Own jQuery Plugin Introduction to Stateful Plugins and the Widget Factory Some Tools I’ve also come across of few kick-ass Firebug plugins you won’t be able to live without. FireQuery: a Firebug extension for jQuery development ...

Creating a Fluid jQuery jqGrid

I’m just going to come right out and say it, I have a huge nerd-crush on jQuery. I have for several years. Actually, it may be more of a love affair. Recently I’ve been spending extra time with the jqGrid plugin, a fantastic mechanism for displaying tabular data in hip & trendy webby-2.0 sites. One limitation I quickly ran into was the grids insistence on a statically defined layout. More precisely, the grid only works for a fixed width, meaning no fluid layouts. Let’s fix that! I spent a few minutes spelunking the jqGrid documentations and found...

Alt.NET Podcast – jQuery in ASP.NET

The latest edition of the Alt.Net Podcast series is out! This episodes features a bunch of smarties, and one dummy (me), talking about JavaScript and the recent jQuery + Microsoft announcement. I’d like to thank Mike Moore for inviting me to be on the show, and a special thanks to the other guests for letting me hang with them! Oh… and the reason I’m silent for the last 1/4 of the show is not that I learned to keep my mouth shut. It’s because the hard drive on my machine decided to die – literally my...

Add Option Elements to a Select List with JavaScript

While working on a web application I had the need to dynamically add new Option elements to a Select element (drop down list) using some fancy client-side JavaScript. The obvious solution was to do something like this: var theSelectList = $('theBigFatSelectList'); var myNewOption = new Option("My Option", "123"); theSelectList.selectedIndex = InsertNewOption(myNewOption, theSelectList); function InsertNewOption(newOption, selectElement) { var optsLen = selectElement.options.length; selectElement.options[optsLen] = newOption; return optsLen; } And it worked just as I’d expected. I got a new option in the drop down list and all was right with...

Use the PageRequestManager to Get More Control of Your UpdatePanels.

Being Web 2.0 is a hot topic right now. So much so that everyone and their mom is out to dress up their web presence with whatever Ajaxy goodness they can. Lucky for the Internet the ASP.NET AJAX framework has made adding Ajax functionality to asp.net web sites and web applications a pretty simple task. The simplicity is made possible because the framework hides much of the magical mechanics of doing the actual Ajax and DOM work behind a new control, the UpdatePanel. However, like most magical solutions this one comes at a cost. Actually a couple of costs. Two...

Lightbox and Subtext Galleries Integration

Recently several Subtext users have asked how to integrate Lightbox JS into Subtext's photo galleries. My standard answer has been Right now it's not possible because the control that renders the galleries emits links with relative URLs rather than fully qualified URLs. We'll look into making a change to the data binding mechanism for a future release - so hold tight! I finally had a few spare cycles so I looked into the existing data binding logic and realized that it is possible to get the control to emit fully qualified URLs right now! Notice, I said it's...

URL and HTML Encoding on the Client? JavaScript to the Rescue!

Phil recently wrote about some of The Most Useful .NET Utility Classes Developers Tend to Reinvent Rather Than Reuse - an article chock full of tasty tips, tricks, and reminders about [.net] framework features you forgot (or never knew) existed. One of the utility classes Phil mentioned was the System.Web.HttpUtility class. Two of the super useful methods this class offers are UrlEncode and UrlDecode... used to uh, convert a string into a URL encoded string and decode a URL encoded string, respectively. Do you encode? All web developers, regardless of language/platform, should be intimately familiar with the basic encoding schemes...

WebForm_PostBackOptions is Undefined - Check Your httpModules

While working on a new client application and ran into a bizarre issue with the WebResource.axd handler. The issue manifests itself as a JavaScript error when trying to do a PostBack from your WebForm. In IE7 you'll get the standard Error pop-up message informing you that 'WebForm_PostBackOptions' is undefined Not exactly the most useful error message. After a little JavaScript debugging in Firebug I found that the error was thrown because the WebForm_PostBackOptions method was missing. Yikes! How is it missing? As of asp.net 2.0, the Framework uses a new WebResource.axd handler to send assembly resources (like images, CSS...