In order to test it I've create simple window. And generated code is
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" height="300" id="hello" width="300">
<script>function action() { alert('hello world!'); }</script>
<button label="alert" onCommand="action"/>
</window>
But when I click on button - alert does not show up. Even If I set
Code: Select all
action();
Code: Select all
onCommand="alert('hello world!');"
I am using XULExplorer and Mozilla with Remote XUL plugin.
What's the problem?
When I simply create only script like this using library
Code: Select all
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" height="300" id="hello" width="300">
<script>alert('hello world!');</script>
</window>
alert is shown up.
P.S I've installed old version of mozilla browser(2.0.0.8) and it doesn't work there too