Forum Moderators: open
I have a forum on my site and I`m trying to use some server side stuff to include the latest posts on my homepage. You can include the latest news, active users or stats. Now the stats and active users work just fine, but I`ve got a problem with the news working.
I`m using javascript to show the news, this is the code:
<script type="text/javascript" language="JavaScript" src="http://blah.co.uk/js.php?a=news&show=5"></script>
This should show the last five posts in the news section on my homepage. What I`m getting is the following javascript error:
Line: 3
Char: 5877
Error: Unterminated String Constant
Code: 0
URL: blah.co.uk
Now all I want to know is, is this a problem with the page that the script is on or a problem with the actual file that its linking to? I`m not that familiar with javascript errors.
On the page that its on, line 3 are the meta tags, so I`m a little confused about whats what.
Any ideas?