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.
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]
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]
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]
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]
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]
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]
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]
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]
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]