Results 1 to 3 of 3

Thread: Help validating with W3C

  1. #1
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help validating with W3C

    Hello, First let me say that I am no expert on this stuff. lol. Ive been adding stuff to the website and found that a weather script will not validate. Ive emailed them and get no response as to what kind of script it is written in. Normally this is when i would call up my brother inlaw who set up the site but he is currently in Air Force boot camp. So if anyone has the time to help, Thanks in advance.

    ok heres the website: http://cmwclan.com/
    Its set up using wordpress. The weather script is in the side bar.

    This is the link they sent me(you have to register and they send it to you):
    <script
    src='http://voap.weather.com/weather/oap/60601?template=GENXV&par=1024551575&unit=0&key=78a503e6182c8f064c645be1d116d43a'>
    </script>

    Many errors!!!! Ive changer it to this:
    <script src='http://voap.weather.com/weather/oap/60601?template=GENXV&amp;par=1024551575&amp;unit=0&amp;
    key=78a503e6182c8f064c645be1d116d43a'/><script type="text/javascript"></script>

    So this is my code, not right but it works this way (go a head and tell me if im retarded, but ive tried everything i know):
    <li>
    <center>
    <script src='http://voap.weather.com/weather/oap/60601?template=GENXV&amp;par=1024551575&amp;unit=0&amp;
    key=78a503e6182c8f064c645be1d116d43a' /><script type="text/javascript"></script>
    </center>
    </li>
    No matter where i put script type W3C will not find it. SO if you go to the webpage and run the validater link, you will see that this is my problem.

    I also believe that the sidebar is written in .PHP so maybe im writing wrong all together, cause i know little about php. This is a thorn in my side please help.
    Bryan.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    <script src='http://voap.weather.com/weather/oap/60601?template=GENXV&amp;par=1024551575&amp;unit=0&amp;key=78a503e6182c8f064c645be1d116d43a'/><script type="text/javascript"></script>
    What you have here, if we expand the short tag and neaten it out a little (URL removed for brevity), is:
    Code:
    <script src='...'>
    </script>
    
    <script type="text/javascript">
    </script>
    So, one closed script block (which, by the way, won't be recognised in most browsers and so will hide a lot of your page) without a type attribute, and one script block with a type attribute but no actually content. You need to put the type attribute in the existing script tag:
    Code:
    <script src='http://voap.weather.com/weather/oap/60601?template=GENXV&amp;par=1024551575&amp;unit=0&amp;key=78a503e6182c8f064c645be1d116d43a' type="text/javascript"></script>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow thanks. I see where i messed up. When i tried it that way i did this
    key=78a503e6182c8f064c645be1d116d43a type="text/javascript"( '/>)</script>

    this being the wrong part ('/>)

    THANK YOU I knew it couldnt be that hard.

    Thanks very much...Bryan

Bookmarks

Posting Permissions

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