>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Making Ajax Elegantly Fast - function var october ajax return pm http code

 
Registered tutorials: 501
Registered Users: 33129



Rating: 4 out of 2 votes cast


  
Category: Technique Introduction

Making Ajax Elegantly Fast

Digg this   Post to del.icio.us

Abstract: Reading this tutorials you can take a close look at how the getXHR function is redeclared within the main declaration to simply return the appropriate object back to the client when it is requested

Sometime ago I was messing around with various techniques for ways that we can optimize asynchronous calls to the server via XMLHttpRequest (and the ActiveX equivalent of XMLHTTP). I wrote about one of those techniques known as branching in an article for Digital Web Magazine called Seven JavaScript Techniques You Should Be Using Today back in April, however, there was a flaw in the function that when one request is made before another one is finished, you would run into an error since it is using the same reference to the instance object for the request. That’s cool in theory, but bad in practice. The benefit you get with that is that you never create more than one XMLHttpRequest object for all your requests. This is fine for light weight use, and when you know for sure that you won’t be making frequent requests simultaneously. But when does that ever happen? Really.

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 556
Unique Hits: 542


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.1 0.1 0.2 0.3 0.2 0.3
Current 0 0 0 0 0 0
Previous 0 0 1 1 1 1
Nov 29 0 0 0 0 1 2
Nov 28 0 0 0 0 0 0
Nov 27 0 0 0 0 0 0
Nov 26 0 0 0 0 0 0
Nov 25 0 0 0 0 0 0
Nov 24 0 0 0 0 0 0
Nov 23 1 1 0 0 0 0
Nov 22 0 0 1 2 0 0
Highest 17 17 66 67 246 252


Script Execution Time: 1.35068 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2