Archive

Archive for the ‘jQuery’ Category

Cross-domain JsonP using Asp.net MVC and jQuery

July 24th, 2010 Nathan 3 comments

So there are a couple great walkthroughs out there that talk about using jquery jsonp in cross-domain scenarios.  They talk a lot about the requesting and server side, but not so much about how to use the callback. So to clarify, I’ll step through what I did to make this work including providing my implementation for a new ActionResult called JsonPResult for MVC.

Read more…

Categories: ASP.Net, jQuery Tags: , , ,

Using jQuery Modal Dialog Confirmation with an ASP.NET Server Control

December 1st, 2009 Nathan 18 comments

So the other day, I wanted to build a confirmation dialog using jQuery with an existing Asp.Net web forms Button control.  I wanted this dialog to be modal; and upon confirmation, I wanted it to postback using the Button’s server-side click event.  After toying with the jQuery dialog, I realized that its dialog doesn’t suspend the process while waiting for user input. So it also causes problems with confirmation since clicking the original button will always postback. So with a few tweaks, you can prevent the postback and emulate the click event pretty easily.

Read more…

Categories: ASP.Net, jQuery Tags: , , , ,