Throbberized

This commit is contained in:
law%netscape.com 1999-03-13 04:24:13 +00:00
parent 3af600d45f
commit 9d75c48e97

View File

@ -209,6 +209,46 @@
}
}
function BrowserLoadURL()
{
appCore = XPAppCoresManager.Find("BrowserAppCore");
if (appCore == null) {
dump("BrowserAppCore has not been initialized\n");
return;
}
appCore.loadUrl(document.getElementById('urlbar').value);
}
//Obsolete - to be removed
function onThrobber() {
var throbber = document.getElementById("Throbber");
if ( throbber ) {
var busy = throbber.getAttribute("busy");
if ( busy == "true" ) {
throbber.setAttribute("style", "list-style-image:url(resource:/res/throbber/throbbingN.gif);");
} else {
throbber.setAttribute("style", "list-style-image:url(resource:/res/throbber/anims00.gif);");
}
}
}
//Obsolete - to be removed
function SetThrobberBusy() {
var throbber = document.getElementById("Throbber");
if (throbber != null) {
throbber.setAttribute("style", "list-style-image:url(resource:/res/throbber/throbbingN.gif);");
}
}
//Obsolete - to be removed
function resetthrobber() {
var throbber = document.getElementById("Throbber");
if (throbber != null) {
throbber.setAttribute("style", "list-style-image:url(resource:/res/throbber/anims00.gif);");
}
}
</html:script>
@ -406,7 +446,7 @@
<html:td style="vertical-align:center">
<html:input id="urlbar" html:style="vertical-align: center; width: 100%" html:type="text"
html:onkeyup="if (event.which == 13) { window.frames[0].location.href=document.getElementById('urlbar').value; }"/>
html:onkeyup="if (event.which == 13) { BrowserLoadURL(); }"/>
</html:td>
<html:td width="80px">
@ -415,7 +455,9 @@
<observes element="canPrint" attribute="disabled"/>
</titledbutton>
<titledbutton src="resource:/res/throbber/anims00.gif" align="right" onclick="window.frames[0].home()"/>
<titledbutton id="Throbber" style="list-style-image:url(resource:/res/throbber/anims00.gif);" align="right" onClick="window.frames[0].home()">
<observes element="Browser:Throbber" attribute="busy"/>
</titledbutton>
</html:td>
</html:tr></html:table>
@ -581,6 +623,7 @@
<broadcaster id="Browser:OnStartBinding"/>
<broadcaster id="Browser:OnStopBinding"/>
<broadcaster id="Browser:Security" secure="false"/>
<broadcaster id="Browser:Throbber" busy="false"/>
<html:center>
@ -602,12 +645,6 @@
<progressmeter id="meter" mode="normal" value="0" style="width:100px; height: 16px;">
<!-- <observes element="Browser:LoadingProgress" attribute="value"/> -->
<observes element="Browser:LoadingProgress" attribute="mode"/>
<!-- This <observes> element really belongs under the html:div below -->
<!-- Unfortunately, it doesn't work (right now) if a child of an html -->
<!-- element. -->
<observes element="Browser:Status" attribute="text" onchange="onStatus()"/>
<observes element="Browser:OnStartBinding" attribute="url" onchange="onStartBinding()"/>
<observes element="Browser:OnStopBinding" attribute="url" onchange="onStopBinding()"/>
</progressmeter>
</html:td>
@ -615,6 +652,9 @@
<html:td id="statusbar-text" class="statusbar-text" style="width:*;font-family:sans-serif;font-size:2.5mm;border-top:2px solid;">
<html:div id="statusText">
Document: Done
<observes element="Browser:Status" attribute="text" onchange="onStatus()"/>
<observes element="Browser:OnStartBinding" attribute="url" onchange="onStartBinding()"/>
<observes element="Browser:OnStopBinding" attribute="url" onchange="onStopBinding()"/>
</html:div>
</html:td>