Microsoft trying to imrove jQuery
One of the big announcement at MIX 10 besides the Windows Phone Development stuff was a new jQuery plugin to do data templating. This comes is some very welcome news for me. If you have followed me this year or caught one of my talks I have been spending a lot of time talking about jQuery to WCF messaging. In that demonstration I hope you have seen how I leverage John Resig’s Micro-Templating engine . I don’t know if you were aware that the ASP.NET AJAX team has also been working on solving the template/data...(read more)
10:51 AM | | 2 Comments
WCF and jQuery Exception Handling
Now that I have covered the basics of calling a WCF service using jQuery’s AJAX functionality with JSON its time to deal with bugs. Yep, we all create them and have to troubleshoot them on a daily basis. Even if you are not actually coding the WCF service you need to know how to deal with any exception that may be bubbled back to the client when you call a service API method. If you remember there were a few items I referenced in the previous post on the jQuery side of this transaction to deal...(read more)
10:50 AM | | 0 Comments
Creating a WCF Service for JSON
Saturday I gave a presentation for the first time at the Southern California Code Camp on how to use JQuery to perform AJAX operations against a WCF Endpoint. Today I want to review how to create a WCF service that supports JSON and how to properly create messages that can be serialized to and from JSON. The first step is to add a WCF Service to a web site, typically this will be your actual web site but it does not have to be. Your architecture will vary by application requirements and network security...(read more)
10:49 AM | | 0 Comments
The jQuery Templating Plugin and Why You Should Be Excited!
One of the things that just seemed to be missing from the jQuery ecosystem was a truly simple to use data-binding mechanism. I have been writing about and presenting the use of John Resig’s Micro-Templating mechanism all over the country this Winter. Now I can update my sample code to use the templating plugin officially introduced at MIX last week. The jQuery templating plugin is the first addition added to the jQuery Core from Microsoft. To be honest the Microsoft team is doing some real intense...(read more)
10:44 AM | | 1 Comments
Dynamic meta description and keyword tags for your MasterPages
Today we're going to look at a technique for dynamically inserting meta tags into your master pages. By taking control of the head tag and inserting your own HtmlMeta you can easily customise these tags.Might have noticed that when you create a new master page in visual studio your tag gets decorated with a runat="server" attribute.Asp.net doesn't add this kind of decoration to any other html tags (although you are free to add it if you want). So what makes the head tag special?By adding the runat="server" you're giving actually converting the control into a HtmlHead control. That doesn't particularly matter for this tutorial other than to note that given a reference to the head control you get all the extras that come with asp.net controls such as access to its controls collection.
11:16 AM | | 3 Comments
