Browse by Tags

All Tags » AJAX » ASP.NET (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: , , ,

Getting excited about AJAX again (but will I use jQuery or Microsoft Ajax 4.0 – or both?) by joelvarty

Dave Reed has a great example of how to do few different things in Preview 5 of Microsoft Ajax 4.0. A fee highlights: Declarative binding of data to templates onitemrendering event (is this the same as onitembind?  it looks like it…) Dynamically...
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: , ,

Minify your Javascripts! by joelvarty

This is a process that is becoming more and more important as we offload a ton of our page processing to .js files as opposed to HTML files processed by the server.  This is because we are doing more client templating and logical processing on the...
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: , ,

Using the Generic Dictionary with JSON web services… by joelvarty

If you want to pass a name/value collection of untyped data to a webservice with JSON, do it like this guys, Joost van Schaik, says: http://dotnetbyexample.blogspot.com/2008/03/json-services-revisited-using.html   Here’s the meat of it really – how...
Filed under: , , ,

Don’t use alert() on AJAX webservice errors! by joelvarty

Even if you want the user to be notified of the fact that an AJAX webservice call has errored out, don’t use an alert() to do it. Why?  Lots of reasons… here are a few: If you have one of more calls that error out before the user can dismiss the...
Filed under: ,

IIS 7, Dynamic Compression and tons of AJAX web services means massive performance increases by joelvarty

I work on a product called Agility CMS . Agility CMS is a hosted web content management system - including a web application dedicated to actually editing website content, pages, sitemaps and other good stuff. Last week we updated the app moved the whole...
Filed under: , , ,
More Posts Next page »