PDA

View Full Version : External Data Provider - Error "undefined (undefined)"


exedgeman
12-11-2012, 03:24 PM
This may have been asked before but we could not find it. We used the search and did a google search with the string and this website. My apologies if this has been answered before.

We are using the using the Javascript located on here (http://www.vbulletin.com/docs/html/main/vboptions_externaldataprovider_implementing)on the main page off our website (http://www.jamaicans.com/) (right side bar). Recents posts are displayed however below them are lines with the following ""undefined (undefined)",

Lynne
12-11-2012, 03:48 PM
What is the source of the feed you entered into the code?

kh99
12-11-2012, 04:10 PM
I think you might have a conflict with some other javascript on the page. I'm not a javascript expert, but maybe try something like this:

<script type="text/javascript">
save_threads = threads;
delete threads;
</script>
<script src="http://jamaicans.com/forums/external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i in threads)
{
document.writeln(threads[i].title + " (" + threads[i].poster + ")<br />");
}
threads = save_threads;
//-->
</script>