function DumpAttributes() { // get the personal toolbar folder, which'll be constructed // automagically by RDF var folder = document.getElementById("NC:PersonalToolbarFolder"); dump("folder = " + folder + "\n"); if (folder == null) return; // get the attributes of the folder var attrs = folder.attributes; dump("attrs = " + attrs + "\n"); if (attrs == null) return; // iterate n' print for (var i = 0; i < attrs.length; ++i) { var attr = attrs[i]; dump("attrs[" + i + "] = " + attr + "\n"); if (attr != null) { dump("attr.name = " + attr.name + "\n"); dump("attr.value = " + attr.value + "\n"); } } } function SetItemText() { var folder = document.getElementById("NC:PersonalToolbarFolder"); dump("folder = " + folder + "\n"); if (folder == null) return; var attrs = folder.attributes; dump("attrs = " + attrs + "\n"); if (attrs == null) return; var attr = attrs.getNamedItem('nc:Name'); dump("attrs.getNamedItem('nc:Name') = " + attr + "\n"); if (attr == null) return; var newValue = document.getElementById("NewText").value; dump("newValue = " + newValue + "\n"); attr.value = newValue; } DumpAttributes Set Item Text Name URL