We are using autocomplete mode loading data from an XML file, sometimes the file is huge and we need to show an hourglass cursor while loading and set it to default when loaded
any suggestion would be appreciated
Combo doesn’t provide any events for xml loading so effect can be achieved only by code modification
dhtmlxCombo.js , line 718
xml.loadXML(url);
/* any code which show loading image or change cursor state can be added here*/
dhtmlxCombo.js , line 738
dhtmlXCombo.prototype._fillFromXML = function(obj,b,c,d,xml){
/* any code which hide loading image or restore cursor state can be added here*/
besides i don’t know what code to add…
adding anything behind xml.loadXML(url); will fail loading the combo.
Things improved a bit since original question, so current version of combo has event for xml loading start and end, so no customization necessary.
You can use code similar to next
var z = new dhtmlXCombo(…
z.attachEvent(“onXLS”,function(){
document.body.style.cursor=“wait”;
})
z.attachEvent(“onXLE”,function(){
document.body.style.cursor=“default”;
})