The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
"Null or not a object" error
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: Code:
<div class="lthds"><!-- BEGIN LATEST THREAD CODE --> <script type="text/javascript" src="external.php?forumids=2,286,13,14,302,282,284,17,16,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> Thanks in advance, Daniele. |
#2
|
||||
|
||||
bump ..
|
#3
|
||||
|
||||
Is it actually grabbing a full 10 threads? I don't have IE, so I can't really help with troubleshooting the issue.
|
#4
|
||||
|
||||
Quote:
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! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|