October 2007 - 6 posts
Posted on October 31st, 2007 at 5:11 PM CST

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…

[ Read More ]

AnchorPermalink EyeViewed 6,246 times CommentsComments (10)
Posted on October 30th, 2007 at 11:57 AM CST

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…

[ Read More ]

AnchorPermalink EyeViewed 1,617 times CommentsNo Comments
Posted on October 26th, 2007 at 5:40 PM CST

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…

[ Read More ]

AnchorPermalink EyeViewed 1,796 times CommentsComments (8)
Posted on October 23rd, 2007 at 9:09 PM CST

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…

[ Read More ]

AnchorPermalink EyeViewed 2,264 times CommentsComments (4)
Posted on October 22nd, 2007 at 9:47 PM CST

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…

[ Read More ]

AnchorPermalink EyeViewed 2,308 times CommentsComments (4)
Posted on October 22nd, 2007 at 4:37 PM CST

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…

[ Read More ]

AnchorPermalink EyeViewed 1,062 times CommentsComments (8)