Browse by Tags

All Tags » ASP.NET » jQuery (RSS)

Error 400 with WCF REST Services by joelvarty

I recently worked on a site that had a strange issue where “sometimes” the WCF service (JSON encoding) that we accessed via JavaScript (using jQuery) was throwing an HTTP 400 error.  Setting a breakpoint at the web method itself was useless as it...
Filed under: , , ,

Server Controls vs Plugins by joelvarty

I think the ASP.NET world has changed completely as far as reusable code is concerned.  Let’s start with a bit of background…   Server Controls I remember when making reusable code in ASP.NET meant writing custom server controls that had all...
Filed under: , , ,

Getting comfortable with Javascript callbacks by joelvarty

It seems every language has it’s own way of implementing callbacks. Back in the VB days (daze?) we used the addressof operator and all kinds of win32 stuff to get app and activex control to do what we wanted. In C#, we have the delegate (and the anonymous...
Filed under: , , ,

jQuery Masonry – the answer to vertical flow layout by joelvarty

“Masonry is a layout plugin for jQuery. Think of it as the flip side of CSS floats. Whereas floating arranges elements horizontally then vertically, Masonry arranges elements vertically then horizontally according to a grid. The result minimizes vertical...
Filed under: , ,

The jTemplates plugin for jQuery – Keep inline templates from being misinterpreted by joelvarty

I love the jTemplates plugin for jQuery.  It works great and I’ve had very little trouble working with it when I put my templates in separate files.  This ensures that the browser does re-interpret the html for the template and re-arrange the...
Filed under: , ,

How JSONP works by joelvarty

There are a plethora of explanations for JSONP (JSON with Padding, I think it stands for) out there – just search for “how JSONP works” and you’ll get a ton of descriptions.  JSONP is provided as an alternative to normal JSON by jQuery on the client...
Filed under: , ,

Load jQuery Dynamically by joelvarty

Sometimes you have to load jQuery, but you don’t know if it has already been referenced somewhere else in the website.  This tends to happen if you have a custom web control, delivered in an assembly, that relies on jQuery. This code has been ripped...
Filed under: , ,

JQuery - get a handle on a server element in javascript without using <%= elem.ClientID %> by joelvarty

One of the things I see  a lot of is code that looks like this: < asp:CheckBox ID ="chkEnable" Text ="My Checkbox" runat ="server" /> < script type ="text/javascript" > var chkEnable = $get( "<...
Filed under: , ,

VS Docs for jQuery 1.3.1 by joelvarty

I am using jQuery for everything these days - it really is an awesome add-on to any web application, and what even better is that you can get intellisense on it for the latest version.   Makes it easy to get stuff like this showing up when you are...
More Posts