I tried document.getElementById("sidebar") but it does not work. I
already tried to call it in a function where I used
document.setInterval() to call the function because that solved my
last problem (thanks to this group).
I think that I'm referencing the wrong document. Is that possible? But
I dont know how to change the document so I can reference the
sidebar's document.
thanks,
Rhapsody
I've only done it once, copying someone elses code, but I think you need its
contentDocument:
get _sidebar() {
var sidebar = document.getElementById("sidebar");
if (sidebar && sidebar.getAttribute("src") == "chrome://foo/content/sidebar.xul")
return sidebar.contentDocument;
return null;
}
john
--
John P Baker
<textbox id="gj53runSearch" flex="1" style="font-size:10pt; " />
and then I just do a normal call
var field=document.getElementById('gj53runSearch');