mozdev.org

JSLib
Page Updated: March 16, 2005
Latest Version: 0.1.375
Debug | Install | File I/O | RDF | Network | Sound | Utils | XUL | Zip
Home | Mailing List | Install | Source Code | Downloads | Bugs | docs | clients

AutoUpdate


File: install/autoupdate.js

Status: In Flux

Module Identifier: jslib_autoupdate

Fuction List


Example

To use the AutoUpdate library:
// include auto update lib
include (jslib_autoupdate);

// an rdf style update                                                                                                  
var url = "http://mypackage.mozdev.org/conf/update.rdf";
var update = new AutoUpdate(url, "mypackage", content);
update.checkForUpdate();

jslibPrint("datasource: "+update.datasource);




update.rdf:

<?xml version="1.0"?>
                                                                                                   
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:chrome="http://www.mozilla.org/rdf/chrome#">

<rdf:Description about="urn:mozilla:package:mypackage"
                 chrome:packageVersion="0.1.26"
                 chrome:packageURL="http://mypackage.mozdev.org/install/mypackage_current.xpi" />
                                                                                                   
</rdf:RDF>




 




The jslib project can be contacted through the mailing list or the member list.
Copyright © 2000-2017. All rights reserved. Terms of Use & Privacy Policy.