1 Reply Latest reply on Dec 28, 2007 6:13 AM by m_hartnett

    Refreshing data

      Hello all,

      I have this lovely little list


      <mx:TileList dataProvider="{tempXML.asset.fleet}"
      width="344" backgroundColor="#000000" color="#ff0000" fontSize="27" borderColor="#000000" columnWidth="300" rowHeight="50" themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" id="tilelist1" height="0" y="202" x="178"/>
      <mx:XMLListCollection id="tempXMLList" source="{tempXML.asset}" />

      That I am trying to set up a refresh function


      private function resetForm():void{

      tempXML.asset = tempXML.asset;

      Now when I click the refresh button this is associated with my hover over refreshes however it does not appear that it accually goes back and refreshes the xml data at


      <mx:XML id="tempXML" source=" http://mysite.net/interface.php?username=admin&amp;password=pass&amp;customer=13&amp;actio n=showopen&amp;operation=showassets&amp;format=xml&amp;opstatus=crit" />

      I'm not sure if I'm having a caching issue or if there is something else wrong.

      Any help is much appreciated
        • 1. Re: Refreshing data
          m_hartnett Level 3
          If it is a caching problem then the trick is to make the server think it is a new request. Random numbers or date time parameters in the URL can force the server to view this request as new.

          In all our htttp requests use datatime to force this. Random numbers sometimes can repeat but the datetime is always unique.

          var dt : String = new Date().toTimeString();
          this.service.url = this.service.url + "?submitDate=" + dt;