• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

Cross browser advice needed

Status
Not open for further replies.
Joined
Nov 8, 2005
Posts
2,499
Reaction score
36
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.
Top Bottom