A little more info after some more hair-tearing, but no solution yet.
This line of JavaScript works, the directory for drive C is loaded:
dirTree.setAttribute("ref", "file:///C|/");
This doesn't:
dirTree.setAttribute("ref", "NC:FilesRoot");
Although I think the internal rdf is retrieved -- I can hear some disk
grinding and if I pop the diskette from the A drive I get prompted to put it
back. (This does work in Netscape 7.1)
Andy
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hardacker, Andrew
Sent: Wednesday, November 10, 2004 3:11 PM
To: 'Santiago Aguiar'; [EMAIL PROTECTED]
Subject: RE: firefox and rdf:files problem
Thanks, Santiago, for the tip. Unfortunately it didn't fix my problem. I'm
suspicious that there may have been some recent Firefox modifications made
in the name of security which won't allow access to the local drives. Or
maybe I'm just paranoid.
Andy
-----Original Message-----
From: Santiago Aguiar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004 2:43 PM
To: Hardacker, Andrew
Cc: [EMAIL PROTECTED]
Subject: Re: firefox and rdf:files problem
I had the same problem with mozilla 1.7.3. You need to initialize the
"ref" attribute to something different than the empty string ("") in the
tree element. I use "about:null" :P. Otherwise you can't set it
dynamically from javascript.
The problem is extremely obscure, but its there, and its repeatable.
Hardacker, Andrew writes:
> Everything worked well until yesterday when I upgraded from Firefox 0.9 to
> 1.0. Now the tree is not being loaded from NC:FilesRoot. The code is more
or
> less this:
>
> XUL for the tree widget (simplified):
>
> <tree id="directoryTree" flex="1"
> hideheader="true" hidecolumnpicker="true" seltype="single"
> datasources="rdf:null" ref=""
> flags="dont-test-empty"
> sortActive="true" sortDirection="ascending"
> sortResource="http://home.netscape.com/NC-rdf#Name"
> ondblclick="dirOnDblClick(event);"
> onselect="storeLastOpenDir()">
(.....)
> dirTree.database.AddDataSource(theFiles);
> dirTree.setAttribute("ref", "NC:FilesRoot");
>
> If I remove the rule, I get one entry in the tree containing this text:
> rdf:http://home.netscape.com/NC-rdf#Name
>
> Has anyone had recent problems with this sort of rdf?
saludos! santiago
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom