...

View Full Version : Javascript and Xhtml



wr657
12-31-2006, 10:32 AM
Hi

I have made a norwegian web page (http://www.bomloveven.com/nonvalid.html).

The page is xhtml-based and also contains some
javascript that isn't viewable in any browser.
Before I wrote the code, I visited http://javascript.about.com/library/blxhtml.htm

The code is
<script type="text/javascript">

<![CDATA[
// src='http://www2.nrk.no/tjenester/nrkpadinside/padinside.aspx?
id=hordaland&antall=10&bredde=160&js=1&pop=0'>
]]>

</script>

In the beginning I used:

<script language="JavaScript"
src="http://www.bomlo-nytt.no/style/jsfeed.php">
</script <http://www.bomlo-nytt.no/style/jsfeed.php">

But this code was not validated.

Does someone have a solution?

coothead
12-31-2006, 10:57 AM
Hi there wr657,

and a warm welcome to these forums. ;)

Instead of this...


<div id="hogre">

<script type="text/javascript">

<![CDATA[
// src='http://www2.nrk.no/tjenester/nrkpadinside/padinside.aspx?
id=hordaland&antall=10&bredde=160&js=1&pop=0'>
]]>
</script>

</div>

...try it like this...


<div id="hogre">

<script type="text/javascript"
src="http://www2.nrk.no/tjenester/nrkpadinside/padinside.aspx?id=hordaland&amp;antall=10&amp;bredde=160&amp;js=1&amp;pop=0">
</script>

</div>

coothead

wr657
12-31-2006, 03:09 PM
Thanks a lot. Now it works.
A happy new year from Bergen, Norway.

coothead
12-31-2006, 03:16 PM
Hi there wr657,

A happy new year from Bergen, Norway.
I believe that my sister-in-law hails from that neck of the woods. ;)

coothead



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum