Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Cross browser advice needed

Status
Not open for further replies.
Joined
Nov 8, 2005
Posts
2,495
Reaction score
32
Hi all, can anyone advise with the following please....
I have an old html page which is basically a table containing data some local xml files and using vbscript.
It displays ok in IE 8 but I need it to work in Firefox, which it doesn't
All it shows is the header text and then the rest of the page is blank.

I've fired it through validator and it moans about having no doctype set among a few tag issues but can anyone advise where to start to get it working in Firefox?
I don't need anything fancy done to the page. I purely need it to show in firefox.

Thanks in advance
 
Afraid I can't as it's not on a public facing server.
I can post a snippet if that helps? obviously you won't have the xml files it's displaying either,

THis is the first part

<html>

<head>
<meta http-equiv="refresh" content="30">
<style type="text/css">
.style1 {
text-align: right;
}
</style>
</head>

<body bgcolor=white style="font-family:arial">

<div class="style1">
<h2 align=center style="color: rgb(0,128,0)">AIM2CV Status Monitor</h2>

<script type="text/vbscript">

<!-- Update the following variables with your XML files -->
<!-- The number of XML file is not limited and can be changed -->
XMLFiles(18)
XMLFiles(1) =
XMLFiles(1) = "\\Lwpdata05\CLEARVISION\FEEDS\AIM2CV\Status_Monitor\LWPCVAM02\AIM2CV_AMCO_LME.XML"
XMLFiles(2) = "\\Lwpdata05\CLEARVISION\FEEDS\AIM2CV\Status_Monitor\LWPCVAM02\AIM2CV_AMCO_LME_K.XML"


it then lists a load more files the same as above and then some more vbscript/xml
 
cheers i'll make those changes but would that stop it showing?

does it need the doctype set?

heres the rest of the code

MaxNoActivity = 3600

strSoundFile = "\\lwpdata05\clearvision\feeds\aim2cv\status_monitor\laser.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand = "sndrec32 /play /close " & chr(34) & strSoundFile & chr(34)

set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"

document.write("<h3 align=center>"&now()&"</h3>")

document.write("<table style='font-size: 12pt;' align=center; border=1; cellpadding=0; cellspacing=0>")

flag1 = 0

for each z in XMLFiles

if (xmlDoc.load(z)) then

document.write("<tr>")
if (flag1 = 0) then
for each x in xmlDoc.documentElement.childNodes
document.write("<th bgcolor=rgb(55,217,9)>"&x.nodename&"&nbsp;</th>")
flag1 = 1
next
document.write("</tr>")
end if

document.write("<tr>")
for each x in xmlDoc.documentElement.childNodes

flag2 = 0

if (flag2 = 0 and (x.nodename = "InputFile" or x.nodename = "IniFile" or x.nodename = "LogFile" or x.nodename = "LastOutputFile")) then
document.write("<td bgcolor=white align=center><a href="&x.text&">"&x.text&"&nbsp;</a></td>")
flag2 = 1
end if

if (flag2 = 0 and (x.nodename = "TotalFailed" or x.nodename = "Failed") and x.text > "0") then
document.write("<td bgcolor=orange align=center><b>"&x.text&"&nbsp;</b></td>")
flag2 = 1
end if

if (flag2 = 0 and x.nodename = "LastUpdateTime") then
if (Abs(DateDiff("s",date()&" "&x.text,Now())) > MaxNoActivity) then
document.write("<td bgcolor=red align=center style='color: white'><b>"&x.text&"&nbsp;</b></td>")

objShell.Run strCommand, 0, True

else
document.write("<td bgcolor=green align=center style='color: white'><b>"&x.text&"&nbsp;</b></td>")
end if
flag2 = 1
end if

if flag2 = 0 and x.nodename = "LastError" and x.text > "0" then
document.write("<td bgcolor=red align=center style='color: white'><b>"&x.text&"&nbsp;</b></td>")
flag2 = 1
end if

if flag2 = 0 then
document.write("<td bgcolor=white align=center style='color: black'><b>"&x.text&"&nbsp;</td>")
flag2 = 1
end if

next
document.write("</tr>")

end if

next

document.write("</table>")

</script>

</div>

</body>

</html>
 
I think you'll definitely need to specify a doctype even if it's just transitional.

You could check the js console in ff to see if there are any errors as well.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom