Sometimes it is nice to be able to insert the cursor at a specific location within a textbox. The most common purpose for this, in my opinion, is with textareas. For a theoretical example, I will explain a scenario I have run into a few times. I have already typed a paragraph into a textarea for comments, a message, whatever. For whatever reason, I go back up on the form…
With the abundance of modal layers used throughout the web these days, I thought I would share my method of centering an element on the page. I've come across this question on the ASP.NET forums a couple of times and somebody emailed me the other day asking how I did it on this site, so here goes. For demonstrative purposes, click the "Admin" link on my navigational bar to the left…
Sometimes it can be very useful to retrieve query string values on the client-side in Javascript. This is not all that common, but occasionally I will have a simple popup window (simple enough to be unworthy of an aspx file extension) that I need to pass a query string to it and have Javascript react to it accordingly. If there is no server-side processing, then there is no…
I have been doing several different things with XML at work lately, and one of the projects required me to generate a big chunk of XML based off another companys pre-defined standards. These standards are unbelievably extensive; the documentation is a 2,000+ page PDF! All of the data used is dynamic and not in my control, so I was kinda worried about errors in the XML. I…
I've been running a fine-toothed comb through the rendered markup of this blog lately in search for anything that could use a good cleaning. While doing that, I noticed that a lot of the images in code had an inline style attribute, setting the border-width to 0px. I couldn't figure out how in the heck this was happening. I ended up at…
Took me long enough. I have been working on this blog for many months now. I had my wisdom teeth pulled the other day, and that gave me plenty of free time to wrap this baby up and get it out on the web. When I started, it was planned to launch on the 1st of August. No chance. I guess I didn't anticipate on changing my mind a billion different times. I wrote…
