watching firebug won't give you an indication. canceling a request doesn't stop the request from going to the server, it just stops listening to the response. This is how HTTP works. If you click a link on a page, and then stop your browser, the request for the link's destination URI has already been sent, it's just that your browser has stopped listening for a reply. The server still gets the instruction. If you fill out a form to buy something and put in your credit card and hit submit, then change your mind and stop your browser, the form has already gone to the server and there's nothing you can do about it.
2009/9/25 Fábio M. Costa <[email protected]> > Request.HTML has all the events that Request has. So Request.HTML has > onFailture too for example. > The cancel method is available at request.HTML too, for the reason. If its > not working i dont know, thats something that should be looked deeper. > > Thanks for the info! > > Best regards, > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interface > > > > On Fri, Sep 25, 2009 at 1:20 PM, Rajeev J Sebastian < > [email protected]> wrote: > >> >> On Fri, Sep 25, 2009 at 9:47 PM, Steve Onnis <[email protected]> >> wrote: >> > I am working on some UI classes for Mootools and i have a question >> regarding >> > Request and Request.HTML. >> > >> > Currently I am using Request.HTML because there is no "update" option >> for >> > Request. I have some scripts that i need getting run and some events >> being >> > attached to elements as part of those scripts and when i use Request, >> > because i cant use "update" i am having to use set("html", response) and >> > well the events dont stay attached so i have no other choice. >> > >> > It would be handy to have all the events that are attached to the >> Request >> > function available for Request.HTML also like onFailurre and so on. One >> > thing i am asking now though is that i need to be able to cancel a >> > Request.HTML but the method does not seem to be available or is not >> working >> > properly. When i am in FireBug console, i can see the request starting >> but >> > when i call cancel() on it, FireBug is still saying it is running. >> > >> > Should it show that it has been cancelled? >> >> I see the same, but I never receive a response. So I assume its >> actually cancelled. >> >> Also, Request.HTML being a subclass of Request ... all the events of >> Request should be available in .HTML too. >> >> Regards >> Rajeev J Sebastian >> > >
