Question to abort function

Oct 18, 2012 at 11:45 AM

Hi Alex,

I have seen that datajs returns an object which has an abort function to abort the current request:

var object =, fnSuccess, fnError);


Can I use this because it is not documented or will there be changes in the future of what will be returned? I also see that I only can abort the function but I don't get any more information back.





Oct 24, 2012 at 5:29 PM

Hi Joe,

   Yes, indeed you can.  Thanks for letting us know that it is not documented.  You can use it freely, the funciton is part of the public API and we don't have any plans to change it. 

    The function works on a best effort basis.  If the request has not been completely served and processed it will abort and invoke the error callback function passing the following object as the argument.

    { message: "Request aborted" }

    On the other hand, if the request has been completed by now, then the function does nothing.  You may thing that it does nothing if the endpoint is responding too quickly to the request.


Alex Trigo.

Oct 25, 2012 at 11:40 AM

Thanks Alex for the clarifications :)