http://wiki.mozilla.org/Breaking_the_grip_JS_has_on_the_DOM). See also bug 255942 - "Support other scripting languages than JS". Not part of the build - indeed this will not build at all until bug 255942 lands, or the latest patch there is applied. git-svn-id: svn://10.0.0.236/trunk@195705 18797224-902f-48f8-a5cc-f745e15eee43
25 lines
582 B
XML
25 lines
582 B
XML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
|
|
<!-- note: nsXBLPrototypeHandler::ExecuteHandler is still JS specific,
|
|
so 'ondialogaccept' handler does not execute Python
|
|
-->
|
|
<dialog
|
|
script-type="application/x-python"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
id="myDialog" orient="vertical"
|
|
buttons="accept,cancel"
|
|
ondialogaccept="dump('hello')"
|
|
>
|
|
|
|
<script>
|
|
<![CDATA[
|
|
|
|
dump("Dialog location is %s\n", window.location.href)
|
|
|
|
]]>
|
|
</script>
|
|
|
|
<description value="Select a button"/>
|
|
|
|
</dialog> |