Ciao a tutti,
Ho un problema con un Feed reader da me creato in quanto funziona solo su IE7, mentre su Firefox non da segni di vita. Questo è il codice

<html>
<head>
<style type="text/css">
<!--
body {
background-color: #C1C1C1;

}
.Stile2 {font-size: 16px}
.Stile7 {color: #000088}
.Stile8 {color: #0000BB}
.Stile9 {color: #000066}
.Stile11 {color: #000033}
.Stile12 {color: #0000AA}
.Stile13 {color: #000099}
.Stile14 {color: #000082}
.Stile15 {color: #000075}
.Stile16 {
font-size: 16pt;
font-weight: bold;
color: #990505;
}
.Stile17 {
color: #0717AA;
font-size: 48px;
font-weight: bold;
}
-->
</style>

<script language=javascript>
function carica(URL)
{
var rssURL = URL;

document.write("<style type='text/css'>body { background-color: #C1C1C1;}");
document.write(".Stile16 { font-size: 16pt; font-weight: bold; color: #0717AA} .stile2 { font-size: 24pt; font-weight: bold; color: #990505}</style>");

// Creo l'oggetto DOM XML
var objXML = null;
var fonte = null;
// Serve per determinare la versione del Parser Msxml di microsoft
var a = [ 'Microsoft.XMLDOM', 'Msxml.DOMDocument', 'Msxml2.DOMDocument.2.0', 'Msxml2.DOMDocument.2.6', 'Msxml2.DOMDocument.3.0', 'Msxml2.DOMDocument.4.0', 'Msxml2.DOMDocument.5.0', 'Msxml2.DOMDocument.6.0' ];
var i = a.length;
while(i--) {
try {
objXML = new ActiveXObject( a[i] );
break;
} catch (e) { }
}

// Imposto le proprietà dell'oggetto
objXML.async = false;
objXML.setProperty ("ServerHTTPRequest", true);
objXML.validateOnParse =false;
objXML.preserveWhiteSpace = false;

document.write("Sono qui!");

if(!objXML.load(rssURL))
{
document.write( "ERRORE
File Pos: " + objXML.filepos + "
Line: " + objXML.line + "
Reason: " + objXML.reason );
}
else
{
//document.write(objXML.load(rssURL));
var root = objXML.documentElement;
var pos = root;

pos= objXML.selectNodes("//item/title"); //title
link= objXML.selectNodes("//item/link"); //link
pos2= objXML.selectNodes("//item/description"); //description
pos3= objXML.selectNodes("//channel/title"); //channel title
pos4= objXML.selectNodes("//channel/link"); //channel link
pos5= objXML.selectNodes("//channel/description"); //channel description

pubdate = objXML.selectNodes("//item/pubDate"); //data

document.write("
<p align='center'class='stile2'>"+pos3.item(0).text+" </p><hr>");

for(i=0;i<pos.length;i++)
{
document.write("
"+pubdate.item(i).text);
document.write("

"+pos3.item(0).text+"</p>"); //stampa titolo canale
document.write("<p Class='Stile16'>"+pos.item(i).text+"</p>"); //stampa link sul titolo
document.write("
"+pos2.item(i).text+"
"); //stampa descrizione
document.write("
Tratto da:

Canale: "+pos3.item(0).text+"</p>");
document.write("

Link: "+pos4.item(0).text+"</p><hr>");
}
}
}
</script>

</head>
<body>
<p align="center" class="Stile17">*** Feed Reader ***</p>
<div align="center">

</div>
<table align="center">
<tr>
<td align="right" class="Stile16">
Repubblica - Esteri:
</td>
<td align="center" height="50">
<INPUT name=button type=button id="button" onClick='carica("http://www.repubblica.it/rss/esteri/rss2.0.xml");' value='Visualizza' alt="diviso">
</td>
</tr>
<tr>
<td align="right" class="Stile16">
Repubblica - Scienza e Tecnologia:
</td>
<td align="center" height="50">
<INPUT name=button type=button id="button" onClick='carica("http://www.repubblica.it/rss/scienza_e_tecnologia/rss2.0.xml");' value='Visualizza' alt="diviso">
</td>
</tr>
<tr>
<td align="right" class="Stile16">
Unimi - CCDI:
</td>
<td align="center" height="50">
<INPUT name=button type=button id="button" onClick='carica("http://www.ccdi.unimi.it/it/avvisi.rss");' value='Visualizza' alt="diviso">
</td>
</tr>
<tr>
<td align="right" class="Stile16">
Gazzetta - Motori:
</td>
<td align="center" height="50">
<INPUT name=button type=button id="button" onClick='carica("http://www.gazzetta.it/rss/Motori.xml");' value='Visualizza' alt="diviso">
</td>
</tr>
</table>
</body>
</html>
Qualcuno saprebbe spiegarmi il perchè?
Ho provato a cercare su internet ma non sono riuscito a trovare niente a riguardo... e nemmeno qui sul forum!
Aiuto... sono due giorni che ci sbatto la testa!