Game Mogul
Joined: 30 Jan 2005 Posts: 241 Location: Neenerneener Land
|
Posted: Sun Oct 30, 2005 12:12 am Post subject: |
|
|
Well, messing with DOM does suck, but if you can stick with W3C standard DOM, then you'll have no browser sniffing to do. Generally, everything works with every browser but IE (go figure ), Microsoft always tries to make a different, non-conforming standard when any standard comes out. Their idealogy reaches so far in their followers that A programmer freind of mine thought that C++ was on its way out and C# was replacing it .
But, getting back the Javascript (it's so easy to poke at Megahard ), the problem is that all the fun DOM stuff is non-standard an varies, that's where DOM gets tricky. I try as hard as I can to stick to W3C to save heart burn. However, I wanna get away from the varying support of (X)HTML and Javascript and get into the complete support of XML with PHP parsing (w00t!). Since PHP is server side, you don't have to worry if the user's browser is up-to-date, and it applies iniversally since XML is completely defined by what you do in PHP.
The only problem is if the browser is sooooo old that XML is not recocnized, but even then, all you have to do is use PHP to write out at HTML instead of XML. It's so universal. One could use browser sniffing just to figure out if it supports XML, then send it one of two ways. (1) XML with PHP parsing, or (2) XML with PHP parsing and then writing HTML files to the browser.
-Mogul _________________ "Never sneak up on a turtle while he's welding" |
|