Sorry for the cross-post, I am not sure if my solution lies in the rdf-xul 
or security area. 
------------------------------

Hi,

I have an app which is loaded entirely from a remote location, which workes 
fine although now I have run into a small problem..

Consider a small XUL window containing a tree which is to be populated with 
data fetched from an RDF file.

Ideally, I would use rdf:null as datasource, then load the RDF 
asynchronously, etc, basically the rdf-in-mozilla-faq example.

But because the app is run from a remote location I do not have permission 
to create a datasource from scratch (probably because remote XUL is only 
allowed to fetch remote RDF from the same site). So my only option is to 
specify the rdf source directly in the tree datasources attribute. I 
understand the window will now be built after loading of the rdf is 
complete.

This is all still fine, except that I want to refresh this RDF data at 
certain times. Because of the remote-run thing I am not even allowed to 
access tree.database directly, i.e. to get the datasource from it (how does 
that work anyway? Any reference with AddDataSource() and similar functions? 
Is there a GetDataSource[s]() ?) .. so how do I tell Moz to refresh it? 

Why can't I create a new datasource from scratch.. as long as I load the 
RDF from the same site the XUL came from am I not violating the security 
settings am I?

My last attempt was to simply have the relevant tree sitting in an iframe 
which I can then reload (although it would not be as smooth as rebuilding 
the tree) .. but then Moz seems to use a cached copy of the RDF .. i.e. the 
iframe is refreshed but the data is still the same.


Is there a Javascript/XUL option I am missing, or a security setting or 
option (I could live with the user having to click "yes" to something, but 
I don't want to tell them to fire up vim/emacs/notepad and change prefs.js 
or wherever it is :-)

Kind regards, and thank you for your time/replies
Dennis Noordsij

PS - When I say "do not have permission", I tried the action (mostly from 
rdf-in-mozilla faq) in a try/catch block, and the exception says I do not 
have the necessary permissions.

Reply via email to