Mozilla/mozilla/xpfe/browser/resources/content/NetSupportConfirmYN.xul
rbs%maths.uq.edu.au de23cc3486 Change invalid REC-html40 to correct XHTML namespace. b:7834. a:ekrock@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72300 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-15 09:54:41 +00:00

58 lines
1.3 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://navigator/skin/navigator.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<data>
<broadcaster id="NetDialog:Message"/>
</data>
<dialog>
<observes element="NetDialog:Message" attribute="text" onbroadcast="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;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td>
<html:img html:src="chrome://navigator/skin/questionl.gif"></html:img>
</html:td>
<html:td>
<html:span id="message">m</html:span>
</html:td>
</html:tr>
<html:tr>
<html:td></html:td>
<html:td html:align="justify">
<html:button id="OKButton"> Yes </html:button>
<html:button id ="CancelButton"> No </html:button>
</html:td>
</html:tr>
</html:table>
</window>