Why some of my AJAX mistakes are nothing new

Posted by: Ajax.NET Professional, on 21 Nov 2006 | View original | Bookmarked: 0 time(s)

On my last post I wrote about some common mistakes when upgrading your web application to an AJAX enabled one. I got a great feedback on this post... and a couple of developers wrote something like "Don't use Microsoft products!" or "Use JSP instead of ASPX and you are fine...!".

As I understand the problem there is no difference between all the frameworks, web servers and server-side programming language. When using the XMLHttpRequest object I have the method .abort() to kill an http request. I don't know what is done internal, is it similar to remove the network cable? If there is any http request the web server will read the http header and maybe a http body. After this progress the web server will prepair (or already started to prepair) the http response and send back the http header and response. Finished this the http connection is closed, maybe the TCP/IP connection is still alive (depends on the Keep-Alive settings). During all the time it is possible that someone aborts the connection (for me it is more a kill instead of a cancel which means, there is nothing possible to do during or right after this action).

A web server that has already started processing the requests will not get this information. Think of an long running SQL batch that will run in a different process maybe on a different server not knowing anything about web server, TCP/IP or JavaScript inside a web browser.

Do we need something like a TransactionScope in (AJAX) web applications? Do we want to commit or rollback our changes if we lost the connection only for the result code? As I can remeber there is a project using the http status code 100 continue to do exactly this.

I'd like to get your opinion and what do you think about connection aborts (or that the web browser is not available any more).

Category: Ajax | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2380 | Hits: 95

Similar Posts

  • Make SharePoint 2007 Act Like SharePoint 2010, Updated more
  • Gaia Ajax 3.6 Alpha released: Ajax GridView and Adaptive Rendering ++ more
  • Building Advanced Layouts With RadSplitContainer more
  • Telerik Introduces Free Web Testing Framework for ASP.NET AJAX and Silverlight more
  • Teleriks Q2 2009 Release Expands All-in-one .NET Offering more
  • SharePoint Search-as-You-Type with jQuery more
  • RadFormDecorator Q2 2009 - more decoration options, faster rendering! more
  • Up and running more
  • Native JSON Parsing: What does it mean? more
  • A lovely couple (of architecture books) more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD