Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sandaly KEITA on Feb 23, 2009 06:49
open dhtmlx forum
Refresh with multiple pages

Hi,

I make a search like google search.

When the user enter e letter, I send ajax request by:

mygrid.clearAll();
mygrid.loadXML('xml/getListeCas.php?recherche='+recherche);
            

For each letter a new ajax is send even if the first ajax is not finish.

I would like to know if it's possible to stop the last request and keep only the last one.

thanks

sandaly
Answer posted by Support on Feb 23, 2009 07:26
You can try to use 

mygrid.xmlLoader.xmlDoc.abort();

before executing new loadXML command.