Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: javascript detection


Message #1 by Mike Moore <mmoorree4444@y...> on Tue, 30 Oct 2001 07:39:35 -0800 (PST)
 You can use functions like ScriptEngine(), ScriptEngineMajorVersion(), 
ScriptEngineMinorVersion(), ScriptEngineBuildVersion() that return. If you 
want to write code compatible with many browsers, you should check the 
navigator and even the version of the browser. 
In Microsoft JScript are most of the ECMA Script features but many (like 
switch() compilation directives and others) are non-ECMA Script so non-
compatible with some browsers. You have to know that some browsers don't 
know even methods like createElement (i.e. Opera) and this is not our 
problem. 
Regards, 

  Mike Moore <mmoorree4444@y...> wrote: I was curious how many of you 
use javascript detection? We had a visitor whom turned off their
javascript, so when they went a certain page on our
site, it was totally blank. To make a long story short
we received an email stating that we should be taking
into account for this situation. We have about 50
sites and have never considered this a problem til
now. We're debating if we should even deal with going
back and applying some sort of detection. This would
probably need to be built in some other scripting
language, would it be possible to be written in perl?

  Return to Index