Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Scott Bailey on Apr 27, 2009 07:06
open dhtmlx forum
Refresh Accordion Content

Hello,

I am using accordion and attaching a url with the following

dhxAccord.cells("assets").attachURL("accordassets.php");

When making updates in various places while this accordion section os open I would like the content to refresh, i.e. reload the url.
I have tried adding the above liine to the end of the function but it does not seem to work. I think maybe because the accordion is already open.

Is there a command to simply refresh the accirdion cell?

Many thanks
Scott
Answer posted by Support on Apr 27, 2009 08:40
>>but it does not seem to work
Method will work without relation to the current state of accordion's cell, the problem can be caused by caching.
You can try to change the line as
        dhxAccord.cells("assets").attachURL("accordassets.php?uid="+(new Date()).valueOf());
It will result in unique URL for each command and no caching.