I have been successfully using Javascript feeds to display thread titles with links on an HTML index page (what I call Frontpage) from/to a couple of forums.
I have noticed an error warning showing in the status bar in IE6 when the index page loads. This did not prevent the index page loading okay and showing the JS thread links. Firefox does not show the errors. However, with IE7, the JS links do not appear on the HTML page. The optional popup message giving error detail says:
"threads[...].threadid is null or is not an object"
The JS code on the HTML page is:
for (x = 0; x < 4; x++)
{
document.writeln("<a href=\"oracle/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+" <br><br />");
}
As my knowledge of JS coding is limited, could someone please suggest a solution to this problem - is there an error in the script?
I have noticed an error warning showing in the status bar in IE6 when the index page loads. This did not prevent the index page loading okay and showing the JS thread links. Firefox does not show the errors. However, with IE7, the JS links do not appear on the HTML page. The optional popup message giving error detail says:
"threads[...].threadid is null or is not an object"
The JS code on the HTML page is:
for (x = 0; x < 4; x++)
{
document.writeln("<a href=\"oracle/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+" <br><br />");
}
As my knowledge of JS coding is limited, could someone please suggest a solution to this problem - is there an error in the script?
Comment