Tag Archives: JavaScript

Using jQuery Deferred Objects and Promises Instead of Callbacks

In a previous post jQuery Tip #7 – Consolidating jQuery Ajax Calls I talked about how Ajax calls can be consolidated into a JavaScript object to promote re-use and simplify maintenance. In that post I showed how the Revealing Module Pattern can be used to provide a more structured approach and how a callback can be … Continue reading Using jQuery Deferred Objects and Promises Instead of Callbacks

Using Handlebars Templates to Render HTML on the Client

As more and more functionality moves to the client it's important to convert JSON data into HTML using techniques that make maintenance easy down the road. Fortunately, there are several different template frameworks out there that can be used to generate HTML without having to write a ton of JavaScript. One of my personal favorites … Continue reading Using Handlebars Templates to Render HTML on the Client

Getting Data in and out of ASP.NET Applications using Ajax and jQuery – Using WCF – Part 2 by Dan Wahlin

In my previous post I discussed how to use ASP.NET Web Services to serve up JSON data to applications. As a quick review, there are several different techniques that can be used including the following: 1. ASP.NET Web Services (.asmx) 2. Windows Communication Foundation 3. ASP.NET MVC Controller/Action 4. Custom HttpHandler 5. Web API With … Continue reading Getting Data in and out of ASP.NET Applications using Ajax and jQuery – Using WCF – Part 2 by Dan Wahlin

Getting Data in and out of ASP.NET Applications using Ajax and jQuery – Part I by Dan Wahlin

Web applications have changed a lot over the years. When they first started in the 90's nearly every action a user performed on a page caused the page to fully reload. Full page postback operations were the norm and something that everyone expected. As the Web matured developers were given additional tools to exchange data … Continue reading Getting Data in and out of ASP.NET Applications using Ajax and jQuery – Part I by Dan Wahlin

How to create an ASP.NET AJAX Toolkit Extender Control to Extend a GridView

In a previous post I showed examples of how CSS and JavaScript code could be used to freeze the header row of a GridView control and add scrolling capabilities for Internet Explorer and Firefox. Here’s an example of a GridView with a frozen header: In this post I’m going to discuss how to package up … Continue reading How to create an ASP.NET AJAX Toolkit Extender Control to Extend a GridView

Creating Custom ASP.NET Server Controls with Embedded JavaScript

I did some consulting work recently for a company that had a lot of JavaScript embedded in pages that was used used to perform advanced client-side functionality and make AJAX calls back to the server.  The company needed additional team members to be able to contribute to the application without spending a lot of time learning … Continue reading Creating Custom ASP.NET Server Controls with Embedded JavaScript

Calling Web Services with ASP.NET AJAX and JavaScript, Video – Dan Wahlin

ASP.NET AJAX provides several different ways to call Web Services including JavaScript, XML Script and the AutoCompleteExtender. In this video tutorial you’ll see how to call Web Services using JavaScript. Topics covered include creating a Web Service, applying the ScriptService attribute, creating a client-side JavaScript proxy and calling a Web Service using JavaScript and callbacks. … Continue reading Calling Web Services with ASP.NET AJAX and JavaScript, Video – Dan Wahlin