View Full Version : Weather.com script
mrgerbick
09-25-2005, 02:51 AM
I am using the weather.com script to get the weather on my site, the page is an HTML Transitional 4.01, when I do a validations check the only errors that come up is the weather script. It works fine and everything, I just want to know if this would affect my google ranking, or for that matter, will it be indexed on google?
here is the script:
<script src='http://voap.weather.com/weather/oap/60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></script>
birdbrain
09-25-2005, 03:14 AM
Hi mrgerbick,
use this it will validate for you...
<script type="text/javascript" src='http://voap.weather.com/weather/oap/60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></script>
mrgerbick
09-25-2005, 05:10 AM
I kind of figured that, so that is how I did validate it, but it is still getting errors!
here they are:
?
Info Line 300 column 113: entity was defined here.
....com/weather/oap/60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2
Warning Line 300 column 129: cannot generate system identifier for general entity "unit".
.../60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ab
?
Error Line 300 column 129: general entity "unit" not defined and no default entity.
.../60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ab
?
Error Line 300 column 133: reference to entity "unit" for which no system identifier could be generated.
...02?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'
?
Info Line 300 column 128: entity was defined here.
...p/60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776a
Warning Line 300 column 136: cannot generate system identifier for general entity "key".
...template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></
?
Error Line 300 column 136: general entity "key" not defined and no default entity.
...template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></
?
Error Line 300 column 139: reference to entity "key" for which no system identifier could be generated.
...plate=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></scr
?
Info Line 300 column 135: entity was defined here.
...?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'><
birdbrain
09-25-2005, 05:28 AM
I kind of figured that
Sorry, I do not understand. :supereek:
What is it that you figured?
The line of amended code that I supplied validates. :)
birdbrain
09-25-2005, 05:37 AM
Hi mrgerbick,
if you disbelieve me, here is the full code that I validated...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>validation test</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
</head>
<body>
<script type="text/javascript" src='http://voap.weather.com/weather/oap/60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></script>
</body>
</html>
C&P this code and test it for yourself. :)
mrgerbick
09-25-2005, 06:36 AM
Hi mrgerbick,
if you disbelieve me, here is the full code that I validated...
I do not disbelieve you. When I said I figured that, I was just referring to adding the text/javascript to the line of code.
It validates when it is an XHTML document, mine is a HTML Transitional 4.01, which does not validate that code. I am not sure why.
birdbrain
09-25-2005, 06:53 AM
mrgerbick,
what I expected you to do was use the code that I provided for you. :)
It will validate for ALL DOCTYPES.
The amendmrnts that I made to the code were more than just...
type="text/javascript"
So I will repeat the code with all the amendments highlighted for your edification. :D
<script type="text/javascript" src='http://voap.weather.com/weather/oap/60402?template=GENXV&par=1010535204&unit=0&key=d6d3585f868c2348b1d2b14d776ababe'></script>
I trust that this will meet with your satisfaction.
mrgerbick
09-25-2005, 01:52 PM
I apologize about jumping the gun last night. Yes, it did work & get validated! It was late, I was was frustrated. I do apologize.
Thank you for all your help.
birdbrain
09-25-2005, 02:09 PM
No problem, you're welcome. :)
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.