In
aa said:
In
Very kind of you to go to all that trouble suggesting what you have. Seems
that Trend need to Rewrite the Page (& theScripts) properly, I'm
happy to wait till they realise the error of their ways.
The problem I've discovered, is down to various Bugs in the Logic of the
"Browser Sniffing" Scripts that they use...
That Page is an ASP (Active Server Pages) Page & when you choose the
Country & Click [ Go ] it Sends (Posts) the Form to the Server, which
then Reads the Info that the Form Contains (along with the
"User-Agent: " Header that the Browser Sends (if any) & is s'posed to
then Send the Relevant HTMl & ActiveX Object to your Browser.
There are several bits of JavaScript on the Page (both Inline, in the
HTML & also Fetched as separate Files from the Server)
For instance, there is this Script File, used on that Page...
http://housecall-beta.trendmicro.com/global/en/js/scripts.js
& then on the Page that is Sent by the Server, in Response to the Post
from the Browser, there is a Script which then tries to Open up a new
Window, with yet another Page (with more Scripts) in it.
The Scripts do various bits of "Browser Sniffing" - which is an old
fashioned way of *trying* to ascertain what Browser is in use.
Those sort of Checks will *always* end up with some erroneous results
in some Browsers.
But normally, for *most* Browsers, most of the time, they seem to work
OK.
Unfortunately, the Scripts always fall over, when new Versions come out,
cos they have the Checks "Hard Coded" into them.
& in this case, it seems that their so-called Checks for what Browser is
in use are falling over, when it's Internet Explorer SP1 used with WinXp
SP2.
The Page that you (eventually) get to, in the New Window, with the
Choices of "Virus Scan", Security Scan" or "complete Scan" is actually
this...
http://housecall-beta.trendmicro.com/housecall/en/index.html
That is the Page that gives you that PopUp Alert Message.
Try opening that URL directly, (so that you get a proper Browser Window
with normal ToolBars & Menus etc,) & look at the HTML Source of it...
You will see several bits of JavaScript (in <script> Tags) - some are
Inline Scripts & some fetch other .JS Files, such as...
http://housecall-beta.trendmicro.com/housecall/en/../hc.js
&
http://housecall-beta.trendmicro.com/housecall/en/string.js
If you just Click on those Links, (to those .JS Files) your Browser will
prolly attempt to just directly Run the Script, which makes no sense
when the Page isn't Loaded, so RightClick them & Save them to Disk, then
you can Open them up in Notepad or any Text Editor & look at them...
The first one is the one that (attempts to) detect what Browser you are
using & the second one is the one that contains the (Localised) Strings
that show up in the Alert Box.
Basically, their problem is that they are doing it wrong.
Instead of trying to work out (by doing "Browser Sniffing") what Browser
is in use (which is a futile execise), they should be using "Feature
Detection" - in other words the Script should check for the presence (or
absence) of a particualr Feature, to see if the Browser Supports it, not
what the Browse is (or claims to be).