Browse by Tags

All Tags » jQuery » AJAX (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: , , ,

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: , ,
More Posts