PDA

View Full Version : "Null or not a object" error


danyz81
10-26-2009, 03:20 PM
Hello!

I'm using a script code for show the last threads on an external html page.
Work well, the problem is that the IE Console show me a error messages with:
line: 3360 'threads[...].threadid' is null or not a object


This is a part of the code script on the footer of my style:


<div class="lthds"><!-- BEGIN LATEST THREAD CODE -->

<script type="text/javascript" src="external.php?forumids=2,286,13,14,302,282,284,17,1 6,280,281,277,278,283,270,299,271,274,275,276&type=js"></script>


<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<p><a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (by: "+threads[x].poster+")</p>");
}
//-->
</script>
<br />
<!-- END LATEST THREAD CODE --></div>

Any help?

Thanks in advance,
Daniele.

danyz81
10-28-2009, 05:24 AM
bump ..

Lynne
10-28-2009, 03:26 PM
Is it actually grabbing a full 10 threads? I don't have IE, so I can't really help with troubleshooting the issue.

danyz81
10-28-2009, 05:06 PM
Is it actually grabbing a full 10 threads? I don't have IE, so I can't really help with troubleshooting the issue.

Hi Lynne,

Sorry, was a stupid issue.. yes it doesnt show me all the 10 threads... so the issue was a different value about the threads shown and what was written on the script.

This error doesnt show up anymore, thanks for the idea! :)