N
nitrospectide
I am a designer who is pushing hard to use standards compliant best
practices in all of my web work. Javascript is an area where I feel
pretty ignorant, and don't know how to tell what is compliant with
current best practices, and what isn't. Is there some sort of
validator like the w3c has for xhtml and css? Are there things to look
for in code that tell you if it's up to snuff or not?
For instance, i was given this delightfully concise script for
resizing a browser to full screen. I find it to be elegant, and to-the-
point (much cleaner than the code forking stuff I'd used in the past).
However, it only works in IE and Firefox. No Opera. No Netscape. Is
the fix simple and small, or do I have to go back to the complicated
scripts of the past?
Here's the code:
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
practices in all of my web work. Javascript is an area where I feel
pretty ignorant, and don't know how to tell what is compliant with
current best practices, and what isn't. Is there some sort of
validator like the w3c has for xhtml and css? Are there things to look
for in code that tell you if it's up to snuff or not?
For instance, i was given this delightfully concise script for
resizing a browser to full screen. I find it to be elegant, and to-the-
point (much cleaner than the code forking stuff I'd used in the past).
However, it only works in IE and Firefox. No Opera. No Netscape. Is
the fix simple and small, or do I have to go back to the complicated
scripts of the past?
Here's the code:
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)