I have a javascript file connected to my XUL file as follows:
<script type="application/javascript"
src="chrome://myexample/content/myexample.js"/>
The overlay from the XUL file is displayed in Firefox, but my functions aren't working.
e.g.
<statusbar id="status-bar">
<statusbarpanel id="f1"
label="f1"
onclick = "MyExample.f1()"
/>
</statusbar>
myexample.js file looks like:
var MyExample = {
f1: function() {
},
f2: function() {
}
}
This is my chrome.manifest:
content myexample content/
overlay chrome://browser/content/browser.xul chrome://myexample/content/myexample.xul
Where could be the fault?