feature
03-28-2009, 06:40 PM
I am trying to display latest threads externally, but it is not working. The javascript code that is. I installed the mod latest threads in marque which has the iframe. The iframe works perfect but not the javascript. I put both codes in one page and only the iframe works.
What can be wrong? I have javascript enabled for external data in admin by the way.
Here is the code:
<div style="background-color:#000000; color:#ff0000">
?
<script src="http://www.mysite.com/forum/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 />");
}
//-->
</script></div>
<iframe height="20" marginwidth="0" width="100%" scrolling="no" src="http://www.mysite.com//forum/external.php?type=iFrame" frameborder="0" marginheight="0"></iframe>
What can be wrong? I have javascript enabled for external data in admin by the way.
Here is the code:
<div style="background-color:#000000; color:#ff0000">
?
<script src="http://www.mysite.com/forum/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 />");
}
//-->
</script></div>
<iframe height="20" marginwidth="0" width="100%" scrolling="no" src="http://www.mysite.com//forum/external.php?type=iFrame" frameborder="0" marginheight="0"></iframe>