Hello all, I've got troubles trying to load a RDF file from a http server with mozilla-1.6 or mozilla-firebird. here is my XUL file which does the job:
<?xml version="1.0"?> <window xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/x-javascript"> function foo() { //url = "file:///home/braun/myfile.rdf"; url = "http://localhost/~braun/myfile.rdf"; netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var RDF = Components.classes["@mozilla.org/rdf/rdf-service;1"] .getService(Components.interfaces.nsIRDFService); var dsource = RDF.GetDataSourceBlocking(url); alert(dsource); } </script> <button label="foo" onclick="foo()"/> </window> when I click the button labeled foo, a javascript try to get the file by calling GetDataSourceBlocking(url). when url starts with "file:///", my RDF file is loaded and an alert is poped up. however, whn url starts with "http://", GetDataSourceBlocking throws an exception. It seems loading the RDF from the web is not allowed.. Can someone tell me if this behavior is expected (eg loading from the web is not implemented), or if I done something incorrect ? Regards, Damien _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
