Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stef on May 30, 2009 00:25
open dhtmlx forum
disable alert window, or create delay (dhtmlxCombo).

Hi,
I like dhtmlxCombo. I use it on www.aanbiedersoverzicht.nl this was just what I needed!
However, there is one problem.
When the page loads slow (I'm on a cheap server) or when you click really fast between the selections the attached xml file (generated by php) loads to slow. Then I get 3 alert windows, all with the same text:

Error type: LoadXML
Description: Incorrect XML

When I clik OK on all the alerts. I notice that all the boxes are working fine, the xml was just loading slow I gues.
I also noticed that when clicking fast from the first box to the second box gives this error, this must be that the xml from the second box is not fully loaded yet.

Is there any way to build in a delay or something?

(What also would be really cool is that an animated gif --loading-- is displayed while the xml is loading.)

Thanks in advance for reply!!

Stef
Answer posted by Support on Jun 01, 2009 05:57

>>Is there any way to build in a delay or something?

You can try to add, the next code
          dhtmlxError.catchError("LoadXML",function(){});
It will hide error messages


>>What also would be really cool is that an animated gif --loading-- is displayed

As all other xml based components, combo has onXLE and onXLS events, which can be used to show|hide loading progress.
combo.attachEvent("onXLS",function(){
            ... code to show progress ...
})
combo.attachEvent("onXLE",function(){
            ... code to hide progress ...
})