The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The error appears in Firefox too, only Firefox fails more gracefully. It's line 4 of headlines.php, which is an extremely long line of horrible HTML being written to the page using document.write. Within that line, there is the name Jaime O'Neill, which is causing the error, because the apostrophe isn't escaped. Solution: add a backslash ( \ ) before it.

I'm curious why this is being done with document.write when it could just as easily be put in there as raw HTML?

Well, fun is a relative term

but productive nonetheless. I've trimmed some of the twigs and branches of the mess -- mostly font formatting and the like -- and am now preparing to tackle replacing the invasive table structure with tableless CSS. Easy for you guys, maybe, but tough for me. Thanks again!

it will be good if you learn how to debug JS. Javascript has familiar syntax, and with such a dynamic language, one can simply understand and get along with it. The difficult part is that you need to learn browser specific function e.g. DOM traversing, assigning event, modifying style.

No doubt you're right, but

I don't have a real interest in JS programming. I find scripts that serve a particular function that I want, and plug them in. If they don't work, I rip them out and either find another version of the same script that will work, or just do without. It's a strictly amateur approach. Hell, I worked with a typewriter for years after computers and word processors came out (though I became quite fond of PFS: Write once I finally got on board). It's just a matter of interest and preference. That's why I depend on you guys to help me out But if you want to know about American politics, or how your kid can read better, I'm your guy. One hand washes the other....