TimBrown
07-20-2007, 09:56 PM
I'm trying to set up my external data provider but nothing shows up with the following code:
<script src="http://forums.x.com/external.php?type=js&forumids=6,12" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i = 0; i < 12; i++)
{
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"440\" height=\"26\" valign=\"middle\">
<tr>
<td><b><a href=\"http://forums.x.com/showthread.php?threadid="+threads[i].threadid+" target=\"blank\">"+threads[i].title+"</a></b> <font size=1>- Posted by "+threads[i].poster+" at "+threads[i].threadtime+"</font></td></tr></table><br />");
}
//-->
</script>
If I take out the table part within the document.writeln it works but I need the table part to fit it in with my design, so this must be a HTML/javascript problem. Could someone help me out please?
Thanks
<script src="http://forums.x.com/external.php?type=js&forumids=6,12" type="text/javascript"></script>
<script type="text/javascript">
<!--
for (i = 0; i < 12; i++)
{
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"440\" height=\"26\" valign=\"middle\">
<tr>
<td><b><a href=\"http://forums.x.com/showthread.php?threadid="+threads[i].threadid+" target=\"blank\">"+threads[i].title+"</a></b> <font size=1>- Posted by "+threads[i].poster+" at "+threads[i].threadtime+"</font></td></tr></table><br />");
}
//-->
</script>
If I take out the table part within the document.writeln it works but I need the table part to fit it in with my design, so this must be a HTML/javascript problem. Could someone help me out please?
Thanks