Inherits From:nsISupports

A datasource that may load asynchronously

This interface is implemented by the following components:


readonly PRBool loaded

This value is true when the datasource has fully loaded itself.


void Flush ( ) void FlushTo ( char* URI ) void Init ( char* URI ) void Refresh ( PRBool blocking )

void Flush ( )

Request that a data source write it's contents out to permanent storage, if applicable.

void FlushTo ( char* URI )


void Init ( char* URI )

Specify the URI for the data source: this is the prefix that will be used to register the data source in the data source registry.

URI: the URI to load

void Refresh ( PRBool blocking )

Refresh the remote datasource, re-loading its contents from the URI.

blocking: If true, the call will block until the datasource has completely reloaded.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
August 23, 2004, 5:05 am no at email dot com
Refresh does not work if the server returns HTTP status code 304 (Not modified).
The datasource is emptied in this case. Since, I guess, it parses the returned data, which is none,
and replaces the current data.


Copyright © 1999 - 2005 XULPlanet.com