First Checked In.

This commit is contained in:
davidm%netscape.com 1999-06-05 01:09:24 +00:00
parent 9a0e6dfc01
commit 20ccc6ea14
7 changed files with 201 additions and 0 deletions

View File

@ -0,0 +1,67 @@
<?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"/>
</data>
<dialog>
<observes element="NetDialog:Message" 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("checkmessage"));
if ( prompt )
{
dump(" setting message \n" );
prompt.childNodes[0].nodeValue = text;
}
}
}
</html:script>
<html:table>
<html:tr >
<html:td>
<html:img html:src="resource:/res/samples/alertl.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"> OK </html:button> </html:td>
</html:tr>
</html:table>
</window>

View File

@ -0,0 +1,55 @@
<?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"/>
</data>
<dialog>
<observes element="NetDialog:Message" 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;
}
}
}
</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: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>

View File

@ -0,0 +1,79 @@
<?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"
onload="onUpdate()" >
<data>
<broadcaster id="NetDialog:Message"/>
<broadcaster id="NetDialog:CheckMessage"/>
</data>
<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>

BIN
xpfe/browser/src/alertl.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

BIN
xpfe/browser/src/errorI.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB