[jQuery] Re: Ajax error handling & textStatus

2009-12-09 Thread Cameron van den Bergh
k for an error. > > http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktypehas some > more information on that. > > -T.J. > > On Dec 9, 6:30 am, Cameron van den Bergh > > > > wrote: > > Good day, > > > When executing an ajax request, i've noticed t

[jQuery] Re: Performance Problems with Suggestion Plugin

2009-12-09 Thread Cameron van den Bergh
Hi, To improve efficiency, try using contexts in order to restrict the parsed DOM elements. For example, if you know that all targeted elements are in . stuff .. target text... . then you should guide the selector engine towards the target : $('#main .myclass '). Another synataxe

[jQuery] Ajax error handling & textStatus

2009-12-09 Thread Cameron van den Bergh
Good day, When executing an ajax request, i've noticed the following problems : - the textStatus callback parameter is always set to success ; - the callback isn't triggered if a download error occurs (404 for example). I understand that the second problem might be unsolvable but is there any way