Jump to content

Xul Firefox Application


gloeg

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...