How to Validate your Traffic Facts Real Time Java Scipt Web Page Code

Posted by: Rodney Liber in Web Development

Tagged in: Web Development

Ok, so I have a website hosted with Google and I purchased the Traffic Facts for the account. Well the Traffic Facts Program allows for Real Time Stats. To do this you can choose to put a java script code on your website. However, the code they provide does not validate against the Strict XHTML.

Before I tell you how I was able to get the code to validate I must warn you that though this may work with all the code options that you get when you sign up for Traffic Facts, but I only tested it on the one I am using on my website.

When you are in your Traffic Facts Control Panel and you Enable Real Time Stats it gives you 7 scripts. The Script I am using is the unsecured script for a Standard Page. Again, this is the only code I edited to get to validate on my site.

Here is the un-secured code that I received:

Traffic Facts Real Time CodeIf you change the code to this alt=”" /> adding the space and the slash made the code validate for me. That’s it!

Trackback(0)
Comments (0)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security code
Write the displayed characters


busy