Changeset 260


Ignore:
Timestamp:
03/19/10 14:49:56 (14 years ago)
Author:
patdui
Message:
  • using timestamp in url so IE doesn't cache the list all the time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/BrowserService.as

    r224 r260  
    2222                [ArrayElementType("ItemDescription")]
    2323                public var itemDescriptions:ArrayCollection;
     24               
     25                private var serviceUrl:String;
    2426
    2527        // Not bindable needed for lookups over the whole collections of itemDescriptions
     
    2830
    2931                public function BrowserService(restUrl:String) {
    30                         this.service = new HTTPService();
    31                         this.service.method = HTTPRequestMessage.GET_METHOD;
    32                         this.service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
    33                         this.service.url = restUrl;
     32                    this.serviceUrl = restUrl;
     33                        service = new HTTPService();
     34                        service.method = HTTPRequestMessage.GET_METHOD;
     35                        service.resultFormat = HTTPService.RESULT_FORMAT_E4X;
     36                }
     37               
     38                private function initService():void {
     39                        service.url = serviceUrl + "?"+new Date().getTime();
    3440                }
    3541
    3642                public function load():void {
     43                    initService();
    3744                        var token:AsyncToken = this.service.send();
    3845                        token.addResponder(new Responder(result, fault));
Note: See TracChangeset for help on using the changeset viewer.