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 / ignore-test.xul < prev    next >
Extensible Markup Language  |  2000-09-20  |  1KB  |  46 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
  3.  
  4. <xul:window
  5.   xmlns:html="http://www.w3.org/1999/xhtml"
  6.   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  7.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  8.  
  9. <html:script>
  10.  
  11. function SetIgnore()
  12. {
  13.    var tree = document.getElementById('tree');
  14.    var ignore = document.getElementById('ignore').value;
  15.  
  16.    dump('setting ignore to ' + ignore + '\n');
  17.    tree.setAttribute('rdf:ignore', ignore);
  18.  
  19.    // now force the tree to be rebuilt.
  20.    var treebody = document.getElementById('NC:BookmarksRoot');
  21.    treebody.setAttribute('id', 'NC:BookmarksRoot');
  22. }
  23. </html:script>
  24.  
  25. <html:button onclick="SetIgnore();">Set Ignore Attrs</html:button>
  26.  
  27. <html:form>
  28.   <html:input id="ignore" type="text" width="80" />
  29. </html:form>
  30.  
  31. <tree id="tree" datasources="rdf:bookmarks" onclick="return OpenURL(event,event.target.parentNode);">
  32.   <treecol resource="http://home.netscape.com/NC-rdf#Name"/>
  33.   <treecol resource="http://home.netscape.com/NC-rdf#URL"/>
  34.  
  35.   <treehead>
  36.     <treeitem>
  37.       <treecell>Name</treecell>
  38.       <treecell>URL</treecell>
  39.     </treeitem>
  40.   </treehead>
  41.  
  42.   <treebody id="NC:BookmarksRoot" />
  43. </tree>
  44.  
  45. </xul:window>
  46.