Adding file for chrome

git-svn-id: svn://10.0.0.236/trunk@37906 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
matt%netscape.com 1999-07-01 23:06:57 +00:00
parent 329652cc90
commit 65fc7ea6ea

View File

@ -0,0 +1,83 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<data>
<broadcaster id="NetDialog:Message"/>
<broadcaster id="NetDialog:CheckMessage"/>
</data>
<dialog>
<observes element="NetDialog:Message" attribute="text" onchange="onUpdate()"/>
<observes element="NetDialog:CheckMessage" attribute="text" onchange="onUpdate()"/>
</dialog>
<html:script>
function onUpdate()
{
dump("onUpate \n");
var msg = document.getElementById("NetDialog:Message");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("message"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
var msg = document.getElementById("NetDialog:CheckMessage");
if ( msg)
{
var text = msg.getAttribute("text");
dump( text +"\n" );
var prompt = (document.getElementById("checkboxLabel"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[1].nodeValue = text;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td>
<html:img html:src="resource:/res/samples/questionl.gif"></html:img>
</html:td>
<html:td>
<html:span id="message">m</html:span>
</html:td>
</html:tr>
<html:tr>
<html:td>
<html:label id="checkboxLabel">
<html:input type="checkbox" id="checkbox"/>
Backwards
</html:label>
</html:td>
<html:td>
</html:td>
</html:tr>
<html:tr>
<html:td>
</html:td>
<html:td html:align="justify">
<html:button id ="CancelButton"> Cancel </html:button>
<html:button id="OKButton"> OK </html:button> </html:td>
</html:tr>
</html:table>
</window>