4 replies [Last post]
Gaia
Offline
Regular
in a box
Last seen: 16 years 51 weeks ago
in a box
Joined: 2005-07-12
Posts: 45
Points: 0

hey,

I get the latest posts from my forum with javascript

<script language="JavaScript" type="text/javascript" src="http://forum.eternal-realm.net/topics_anywhere.php?mode=
show&f=a&n=3&r=y&sr=y&h='m\'l\&so=d&b=4&lpb=0&lpi=y&br=y&bl=y&ch=15&chw=e"></script>

But i end up with so many xhtml validation errors because of it. Is there anyway to get around it? You can see the error by going to
http://eternal-realm.net/testsite/dev2/php/ adn clicking the xhtml icon to the right.

Tags:
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 38 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Re: xhtml and javascript

Gaia wrote:
You can see the error by going to
http://eternal-realm.net/testsite/dev2/php/ adn clicking the xhtml icon to the left.

When I click on the XHTML icon to the right, it says it validates. :?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Gaia
Offline
Regular
in a box
Last seen: 16 years 51 weeks ago
in a box
Joined: 2005-07-12
Posts: 45
Points: 0

xhtml and javascript

Sorry about that i had it taken out to test something. It's back in now and yes, the icon to the right

>_<

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 38 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

xhtml and javascript

Most of your problems are caused by image tags without closing /> and URLs with & instead of &amp; in them.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Gaia
Offline
Regular
in a box
Last seen: 16 years 51 weeks ago
in a box
Joined: 2005-07-12
Posts: 45
Points: 0

xhtml and javascript

well i got it all fixed by changing all the &'s to &amp; ^_^