Hi Erik,
You wrote:
I tend to have all of my javascript in external files which is the other way to make sure that this doesn't happen.
Great way to stay away from the validation of code included within an HTML file. I have one situation in which I can't see that as a solution. The file is a real horror that I have built up over time for local use to keep my work notes; it involves some degree of misuse of forms elements to conduct a search function, frames, and JavaScript that validates search terms. The point relating to the separate-file-for-JavaScript is that of all the features I added, one function just didn't work when I moved it from the page it affects. (It was fine again when I moved it back to the same page.)
I have not tried to get expert help on it because the application would not be of interest (and very complicated to read through) and, by now, I have enough company data in my notes to be a security of information matter.
A very interesting note, however. I did some testing and found that while this failed validation:
if(document.getElementById&&screen.width>1000)
this did *not* fail:
if(document.getElementById && screen.width > 1000)
Wow! That's a biggie. Just a little effort to make code more readable to humans helps the validator!
Thanks for the insight,
Gene Falck [EMAIL PROTECTED]
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
