home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 December
/
PCWorld_2000-12_cd.bin
/
Komunikace
/
mozilla
/
mozilla-win32-M18-mathml-svg-xslt.exe
/
res
/
rdf
/
xpidl-test-1.xul
< prev
Wrap
Extensible Markup Language
|
2000-09-20
|
1KB
|
52 lines
<?xml version="1.0"?>
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
<xul:window
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script>
function RenamePersonalToolbar()
{
var db = document.getElementById("tree").database;
var personalToolbarFolder =
document.rdf.GetResource("NC:PersonalToolbarFolder");
var NC_name =
document.rdf.GetResource("http://home.netscape.com/NC-rdf#Name");
var oldNameLiteral = db.GetTarget(personalToolbarFolder, NC_name, true);
dump("old name was " + oldNameLiteral + "\n");
var newName =
document.rdf.GetLiteral("Hello, goof ball");
db.Assert(personalToolbarFolder, NC_name, newName, true);
}
</html:script>
<html:button onclick="RenamePersonalToolbar();">Remove Personal Toolbar</html:button>
<tree id="tree" datasources="rdf:bookmarks" onclick="return OpenURL(event,event.target.parentNode);">
<treecolgroup>
<treecol resource="http://home.netscape.com/NC-rdf#Name" flex="1"/>
<treecol resource="http://home.netscape.com/NC-rdf#URL" flex="1"/>
</treecolgroup>
<treehead>
<treeitem>
<treecell>Name</treecell>
<treecell>URL</treecell>
</treeitem>
</treehead>
<treebody id="NC:BookmarksRoot">
</treebody>
<treechildren flex="1"/>
</tree>
</xul:window>