Categories | Question details Back To List | ||
reloading tabs Both in IE and Mozilla if I change something in the html file loaded into a tabbar from xml, the changes don't take effect. I think that the tabs are loaded from the cache. Is it poosible to set the tabbar htmls not to be cached somehow? function reloadTab() { tabbar.clearAll(); tabbar.loadXML("xml/tabs.xml"); } doesn't work at all. Answer posted on Jun 26, 2007 13:16 The tabbar use random URL elements to prevent XML caching, so there must not be problems with XML loading, you can force it by tabbar.preventIECashing(true); But if the problem occurs with HTML pages which loaded as content later - there is no any special API for such case ( in most cases native caching of HTML pages is correct behaviour ) You can try do next modification, which will force HTML page reloading In dhtmlxTabbar.js locate next strings - this._glframe.src=this._hrefs[tab.idd]; - this._content[tab.idd].childNodes[0].src=this._hrefs[tab.idd]; and replace them with - this._glframe.src=this._hrefs[tab.idd]+getUrlSymbol(this._hrefs[tab.idd])+(new Date()).valueOf(); - this._content[tab.idd].childNodes[0].src=this._hrefs[tab.idd]+getUrlSymbol(this._hrefs[tab.idd])+(new Date()).valueOf();; as resutlt each time when content of iframe will loaded - random element will be added to url, so it always be unique, and fetched from server instead of cache. Answer posted by Nadine (Support) on Dec 03, 2014 15:39 The information connected with dhtml chart and online dhtml also can help you, so please check it too. |