Log in

View Full Version : Help validating with W3C



B.N.C
07-23-2006, 08:21 PM
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.

Twey
07-23-2006, 10:11 PM
<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:
<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:
<script src='http://voap.weather.com/weather/oap/60601?template=GENXV&amp;par=1024551575&amp;unit=0&amp;key=78a503e6182c8f064c645be1d116d43a' type="text/javascript"></script>

B.N.C
07-23-2006, 10:43 PM
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