Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: bxe does not work with absolute paths: msg#00096

Subject: Re: bxe does not work with absolute paths
On Wed, 2002-10-23 at 20:17, Sandro Zic wrote:
> On Wednesday 23 October 2002 19:18, Christian Stocker wrote:
> > Just as a sidenode. The xml-files have to come from the same host as the
> > index.html. Therefore, if index.html comes from http://example.com you
> > can't laod the xml files from http://other.com, they even have to come
> > from the same port.
> 
> As far as I see, BXE does not support xinclude? 

Nope. But if someone is interested, I have some JS code lying around,
which does xincludes in Mozilla 1.1 for reading. Writing to xincluded
sources is another issue, but if need is there for that, I can try to
implement it as well.

> If it does or if you plan to 
> integrate it, will this restriction run counter multiple xinclusion of 
> distributed XML documents, located at different hosts?

Nope, not possible by default
(http://www.mozilla.org/projects/security/components/same-origin.html )

But you have basically 3 possibilities to circumvent it

1. Sign your Scripts and make them trusted (see
http://www.mozilla.org/projects/security/components/signed-scripts.html
). 

2. add 
user_pref("signed.applets.codebase_principal_support", true);
to your mozilla prefs.js file. I never got that really to work, either I
misinterpreted it or just didn't put much effort into it :)

3. write a proxy-program/script and put it on the server, where the
index.html is coming. We used this method once. In PHP, such a
proxy-script not a very big task :)

christian


-- 
bx-editor-dev mailing list
bx-editor-dev@xxxxxxxxxxxxxxxx
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev



<Prev in Thread] Current Thread [Next in Thread>