originaly posted by jim6763nva
I was analyzing the AJAX code that Blizzard has on there Realm Server Status page and was wondering how it could be adapted to a module for Vba CMPS?
I tried putting the following code in the headinclude section:
and the following code in a template called adv_portal_realmstatus:
I set all this up as a template module on my front page, but all I get is the collapsable header.
I was analyzing the AJAX code that Blizzard has on there Realm Server Status page and was wondering how it could be adapted to a module for Vba CMPS?
I tried putting the following code in the headinclude section:
<script type="text/javascript" src="/shared/third-party/sarissa/sarissa.js"></script>
<script type="text/javascript" src="/shared/third-party/sarissa/sarissa_dhtml.js"></script>
<script type="text/javascript">
<!--
var tableAProcessor;
function initAnnounceDataStyleSheet()
{
tableAProcessor = new XSLTProcessor();
var xslADoc = Sarissa.getDomDocument();
xslADoc.async = false;
xslADoc.load('wow/realmstatus_announce.xsl');
tableAProcessor.importStylesheet(xslADoc);
}
function showAnnounceStatus()
{
if (!tableAProcessor)
initAnnounceDataStyleSheet();
Sarissa.updateContentFromURI("wow/status.xml", document.getElementById("statusAnnounceDisplay"), tableAProcessor);
}
//-->
</script>
and the following code in a template called adv_portal_realmstatus:
<div class="announce">
<div id="statusAnnounceDisplay"></div>
<script type="text/javascript">
<!--
showAnnounceStatus();
//-->
</script>
<h5 style="text-align: center">Updated: Thu Jul 6 15:10:01 MST 2006</h5>
</div>
I set all this up as a template module on my front page, but all I get is the collapsable header.