Jump to content

Xul Firefox Application


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...