Javascript - 8 posts
Posted on April 4th, 2008 at 6:03 PM CST

I spend alot of time surfing the Internet. Who doesn't? When I come across an outgoing link (when I say outgoing, I mean a link to a page that resides on a different domain), I always have to make a decision. As an end user, I am clueless as to whether or not the link will open up in a new window. Perhaps the browser is to blame for this. Regardless, I don't usually take any chances, so I…

[ Read More ]

AnchorPermalink EyeViewed 764 times CommentsComments (7)
Posted on February 1st, 2008 at 12:40 AM CST

I know it has been kinda quiet around here lately, and tonight I finally got some time to post a solution to a legendary web application problem (I also rolled out a few updates to my blog, as you may have already noticed). The issue at-hand probably gets most of its exposure through the use of the ASP.NET framework. On a web form, it is often a requirement to prevent…

[ Read More ]

AnchorPermalink EyeViewed 10,207 times CommentsComments (32)
Posted on December 29th, 2007 at 8:20 PM CST

This is another minor annoyance I have been noticing alot lately. When linking to a fragment (section) on a separate page, sometimes the browser will not properly scroll to the fragment. The cause is the prematurity of the scrolling action. If the browser were smart (Opera is), it would wait for images to load before scrolling to the fragment. If you have no clue…

[ Read More ]

AnchorPermalink EyeViewed 1,358 times CommentsComments (5)
Posted on December 14th, 2007 at 11:14 AM CST

I absolutely despise Javascript errors. When I enable script debugging in Internet Explorer, I usually have to turn it off immediately because of how quickly I get annoyed. It's pretty hard to justify the ridiculous amount of script errors scattered across the web, even on some of the most prestige web sites. It is actually quite funny, and I think they should be embarassed. Anyways…

[ Read More ]

AnchorPermalink EyeViewed 1,159 times CommentsComments (2)
Posted on November 13th, 2007 at 10:59 PM CST

In Javascript, it is very easy to handle the click event of an element and perform any given operation when it gets clicked. However, what if you need execute some code if/when the user clicks an element outside of that element? This is not your everyday scenario, but I stumbled upon it again the other day and thought I would make a post out of it. When I first ran into this problem a…

[ Read More ]

AnchorPermalink EyeViewed 2,189 times CommentsComments (4)
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)