FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Validating pages with Scripts





Phil
I've been trying to get my pages to validate here lately and I've run into a problem.

Right now, the errors I'm being given have to do with some scripts. It's a Google news bar that's generated with AJAX.
I guess my first question is, does it really matter. Are the few error WC3 finding with the script really going to make a difference.
If so, how can I go about fixing it?
LukeakaDanish
If your trying to validate to XHTML, enclose script lines in:
Code:
<![CDATA[     ...      ]]>

Or use an external resource.

No, validation isn't that big a deal. If your HTML is badly invalid you might have problems with browser compatibility, accessibility and search engine indexing.

I never validate anything - if it works in major browsers and is made up of simple xhtml, nothing is wrong.
jmlworld
LukeakaDanish wrote:
If your trying to validate to XHTML, enclose script lines in:
Code:
<![CDATA[     ...      ]]>

Or use an external resource.


Yea. If not necessary, you can save the scripts in separate .js file and pull it from there.

LukeakaDanish wrote:
No, validation isn't that big a deal. If your HTML is badly invalid you might have problems with browser compatibility, accessibility and search engine indexing.

I never validate anything - if it works in major browsers and is made up of simple xhtml, nothing is wrong.


The site template might be valid. But, if you try to validate a page with its content, you will end up invalid markup in some cases. The reason is, because, many people write the content in Word Processing program like MS Word and then they paste it on the page. Word Processing is nice but not for the web sites. It will create weird characters in the content..
AOP Web Development
just separate your js codes as much as possible, and include it into the html file, so that it won't less the file to load on the server
Related topics
Free Hosting-Availability
Apple-scripts and webdesign
"Forms To Go" create scripts in PHP, ASP and Perl
Two Scripts that I need!
Validating
Some useful DHTML/AJAX scripts
Best Script For Me ?
Passing a variable to multiple pages...sort of?
Personalization of Profile Pages?
Need a .htaccess file to process ssi AND allow scripts
long php pages or include
If You Are Replacing Notepad
[SOLVED] "Dynamic" Pages that sort MySQL data
Improve Frihost with (gr)8 Greasemonkey scripts
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.