Click to See Complete Forum and Search --> : ways to make AJAX site as XHTML Valid
Hi webmasters,
I've found backbase ajax site as XHTML Strict Not Valid.
Please check :
http://validator.w3.org/check?uri=http://www.backbase.com
Are there ways to make this valid ?
Thanks.
drhowarddrfine
03-30-2006, 05:55 AM
That link doesn't do us any good.
chazzy
03-30-2006, 06:05 AM
sounds more like you're not building your site correctly. i have a site that uses ajax, it validates.
In fact, it seems like your code is very procedural...
var oBrowser = {};
var _sUA = navigator.userAgent.toLowerCase();
oBrowser.ie = (document.all && !_sUA.match(/opera/) && !navigator.appVersion.match(/mac/i)) ? true : false;
oBrowser.moz = (window.controllers && (parseInt(navigator.productSub)>20031001)) ? true : false;
if (oBrowser.ie) {
try {
oBrowser.compatible = oBrowser.ie && new ActiveXObject('Microsoft.XMLHTTP');
} catch(e) { oBrowser.compatible = false };
} else {
oBrowser.compatible = oBrowser.moz && new XMLHttpRequest();
}
if (!oBrowser.compatible) {
var redirpath = location.hash.match(/^#((home|dev)\/.*)\.xml(\[\d+\]?)?$/);
redirpath = redirpath ? redirpath[1] + ".php" : "";
location.href = "/go/" + redirpath;
}
why not use an object?
chazzy
03-30-2006, 10:13 AM
I just did a little more research for you, it primarily fairs validation because it can only validate a single namespace (part of the xhtml specification apparently). I'm not sure why you need to use multiple (especially since, at least with my understanding, you can't mix multiple namespaces in a single element).