Get the text of a Dropdown’s Selected Item Using jQuery

by Bill Beckelman 5. April 2010 08:03
I always have to look this one up for some reason, so I thought I would put it here to make that easier: $("#Dropdown option:selected").text(); I initially found the answer on this Stackoverflow post.

Tags:

jQuery

Custom ASP.NET MVC Authorization Attribute For Ajax Requests

by Bill Beckelman 1. April 2010 14:34
One issue that I have had for a while that I think I finally solved was what to do with unauthorized jQuery Ajax requests in my ASP.NET MVC application. I finally wrote a custom authorization attribute to take care of the situation. I ran into two issues while constructing the attribute; the first ... [More]

JetBrains WebStorm IDE

by Bill Beckelman 19. March 2010 09:44
I have been using the new web IDE from JetBrains (the makers of Resharper) called WebStorm through several of their preview releases now. I have to say I am really impressed. The Javascript and CSS editors seem to be miles ahead of Visual Studio (2008 at least).  They are projecting a beta rele... [More]

Client Side Validation with xVal for Forms Submitted via Ajax

by Bill Beckelman 27. November 2009 18:03
I had a really hard time figuring out how to use xVal with forms submitted via Ajax and it took a while on Google to try and figure it. All you have to do is set a submitHandler for the form to use. From the jQuery Validate documentation a submitHandler is a: “Callback for handling the actual su... [More]

Tags:

jQuery | xVal

Closest – New Traversal Method in jQuery 1.3

by Bill Beckelman 19. July 2009 09:32
Have you noticed the new traversal method in jQuery 1.3+ named “closest?” I hadn’t until a few days ago when it came in pretty handy when I was working on some client side error handling using the jquery.validate plugin. So what does closest do? From the jQuery docs: “Get a set of elements containi... [More]

Tags:

jQuery

Use jQuery to Show a Link’s Address After its Text When Printing In IE6 and IE7

by Bill Beckelman 16. February 2009 22:10
I found a cool trick in a post by Remy Sharp that appends the address of a hyperlink to the end of the link’s text when the page is printed. Unfortunately the trick only works in browsers that support the CSS2 pseudo selector :after. Firefox, Safari, Chrome*, Opera and now IE8 all support the select... [More]

Tags:

ASP.NET | CSS | jQuery

Copy to Clipboard with ZeroClipboard, Flash 10 and jQuery

by Bill Beckelman 22. January 2009 08:15
So I knew it would happen at some point. Some handy flash developer would figure out how to get around the security limitation in Flash 10 that requires the System.setClipboard() method (ActionScript) to only be called by an action that originates from a user interaction. Last week I ran across an a... [More]

Tags:

jQuery | ASP.NET

More jQuery Alert Dialogs Demo

by Bill Beckelman 14. January 2009 06:48
A couple of weeks ago I wrote about Cory S.N. LaViska’s new jQuery Alert Dialogs Plugin. Since then I have used it quite a bit and have been really happy with its ease of use and simplicity. At the end of the my first post about the plugin I said I would try and show you a way to setup an alert from... [More]

Tags:

ASP.NET | jQuery | CSS

Set the Content of a NicEdit WYSIWYG Instance With JavaScript

by Bill Beckelman 7. January 2009 15:17
In a couple of previous posts I have used the pretty cool NicEdit WYSIWYG editor. Today I wanted to show you how you can use its JavaScript API to set the content of the editor’s body to the data of the item you want to edit. Please remember to be careful when accepting html content from users! Dem... [More]

Tags:

jQuery | ASP.NET

Format Selected Table Rows For Pasting into Excel

by Bill Beckelman 2. January 2009 20:49
Back in November I wrote a post Add Copy to Clipboard Command To contextMenu.js Plugin Demo that copied the data from the selected table rows to the user’s clipboard. This method worked great unless you had a version of Flash Player higher than 9 installed due to a Security Change in Flash Player 10... [More]

Tags:

ASP.NET | jQuery


About Me

I live and work in Salt Lake City, Utah. My background is in aviation. I have a degree in Aeronautical Science from Embry-Riddle Aeronautical University in Prescott, AZ. I have worked as a commercial airline pilot and most recently as a technical advisor for a charter airline.