Jump to content

Xul Firefox Application


gloeg
 Share

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

Edited by gloeg
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...