Menu

#14 Ajax Object

open-accepted
nobody
Other (2)
5
2008-09-04
2007-11-08
Paul Wratt
No

Any issues with Ajax are derived from having only one "transport" object.

Upon reviewing AjaxRequest.js, I would suggest the following:
AjaxObj.tooltip - because they are serial (linear) in requests (that is one object for ALL requests)
one object per file type request, or (as AjaxRequest does) a dynamic Ajax.req that does multiple requests at the same time..

This avoids any tooltip "transport" getting inthe way of a "more priority" file/folder "transport" request

This moves into the realm of "reasons for a complete rewrite", but its not as "major" as it sounds..

.. unless you are going to do funky "cant delete because Ajax is waiting for a create file reply" type checks

Paul

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Paul,

    Do you know how to pass a parameter to the callback function of ajax object?
    ie, http.onreadystatechange = showresult;
    If we can pass the XMLHttpObject also to the call back function 'show result' we can use diff ajax objects for each call. Otherise how we will handle simultaneous requests?

    -Cyril

     
  • Paul Wratt

    Paul Wratt - 2008-09-04

    Logged In: YES
    user_id=1931663
    Originator: YES

    I intend on using an instance based on "AjaxRequest" (http://www.AjaxToolbox.com/). Have a look at the code example on the website to get a quicker understanding. I can handle multiple, parallel, and group serial instances..

    Paul

     
  • Paul Wratt

    Paul Wratt - 2008-09-04
    • status: open --> open-accepted
     

Log in to post a comment.