gloeg Posted January 3, 2010 Share Posted January 3, 2010 I'm busy making my first add-on for firefox but I have a problemThis is my XUL file <?xml version="1.0"?><overlay id="TutTB-Overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">script type="text/javascript" src="chrome://extensie/content/javascript.js" /><hbox><textbox multiline="true" hidden="false" id="textbox" flex="1" persist="visibility"></textbox></hbox><toolbar id="PersonalToolbar"><button id="button" onclick="visible()" label="verberg" persist="label"></button></toolbar></overlay> This is my javascript.js file function visible(){alert("hallo")textbox=document.getElementById("textbox")button=document.getElementById("button")if (textbox.hidden==false) {textbox.hidden=true button.label="maak zichtbaar"}else {textbox.hidden=false button.label="maak onzichtbaar"}} The fault I get is that firefox doesn't know what visible is Link to comment Share on other sites More sharing options...
Mencarta Posted January 9, 2010 Share Posted January 9, 2010 I'm sorry, but you would have to ask this on a FF developer forum. They have more knowledge of how it works then us. Link to comment Share on other sites More sharing options...
boen_robot Posted January 9, 2010 Share Posted January 9, 2010 From what I see in the XUL reference page about the button element, the attribute is oncommand, not onclick. Could that be it? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.