This is my first CMS application and in the ackground is Delphi 7.
I use 5 different XMLListCollections which are dynamically loaded from local files on the server. HTTPService loads the first one into a DataGrid just fine, but when loading any subsequent XML file, it loads the same exact collection as before! I assume this must be a cache?
How do I turn off caching then when loading local XML files? I have tried some suggestions already, like involving headers and so on but nothing seems to deal directly with loading local files.
private function loadXMLData(urlVar:String):void
var httpService:HTTPService = new HTTPService();
httpService.url = urlVar;
httpService.resultFormat = "e4x";
httpService.addEventListener(FaultEvent.FAULT, httpService_fault);
httpService.addEventListener(ResultEvent.RESULT, httpService_result);
httpService.send();
}
private function httpService_fault(evt:FaultEvent):void {
var title:String = evt.type + " (" + evt.fault.faultCode + ")";
var text:String = evt.fault.faultString;
alert = Alert.show(text, title);
}
private function httpService_result(evt:ResultEvent):void {
var xmlList: XMLList;
xmlList = XML(evt.result).Events;
ArtistsData = new XMLListCollection(xmlList);
}