Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript and Xhtml

    Hi

    I have made a norwegian web page.

    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?

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,710
    Thanks
    0
    Thanked 237 Times in 232 Posts
    Hi there wr657,

    and a warm welcome to these forums.

    Instead of this...
    Code:
    
    <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...
    Code:
    
    <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

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot. Now it works.
    A happy new year from Bergen, Norway.

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,710
    Thanks
    0
    Thanked 237 Times in 232 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •