Re: sharing RDF datasource between iframes or through reload
vaab <[email protected]> Tue, 19 Apr 2005 17:18:47 +0200
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
I've posted a first reply with a description of my experiments in a
first apps with a rdf datasource that survived to the reload button ;).
If in the first apps it was a problem, this gave me the solution in a
second application where I actually needed this behavior.
I have to tabs side to side. These are in two different XUL files, and
they loads 2 different scripts. I only wanted to share some RDF between
them. The first tab must collect data, and the second must display them.
I used with success the :
---
var ds = RDF.GetDataSource("rdf:composite-datasource");
---
in each tabs. The first tab could them modify the datasource, while the
second would refresh instantly depending on the modification.
Axel Hecht tried to warn me (I didn't understand all the explanations)
against the "odd caching artifact". And I understand that if I'm relying
on a bug of mozilla javascript architecture, this can not be a solid
implementation.
Axel gave several solution that should work but that I haven't tested
merely because it just work and I had lots of other problem to tackle.
These solutions provided by alex seems much more appreciable than mine,
but I'm always curious to know more about this behavior.
Thanks
Valentin