js IE7 recognition.

Joined
24 Sep 2005
Messages
6,345
Reaction score
268
Country
United Kingdom
This piece of js checks for several IE versions but not IE7.

Is there a simple edit without adding or removing code - just changing, which will enable recognition of IE7 ?

There will be no version lower than 7 involved... and if necessary only IE7


Code.gif


:?:
 
Sponsored Links
document.all - returns true in all Internet Explorer versions and also in Opera
window.opera - also known as opera object, returns true in Opera
window.XMLHttpRequest - returns true in Firefox, Opera, Safari and IE 7
window.XMLHttpRequest - returns false in IE 6 and lower

So

ie7 = <your ie6 variable> && !window.XMLHttpRequest
 
Thanks for that ..

This whole thing requires a little more explanation by yours truly.

I have Norton SystemWorks 2005. on XP SP2. Opera, Firefox, IE7 all aboard... fully updated.

There exists a script error in NSW (the Anti-Virus ), only when attempting to alter 'Internet worm Protection' rules - with IE7 installed.

Googled for that and found :-
http://pjondevelopment.50webs.com/blog/2006/01/ie7-sw-2005-follow-up.html
Error found, and a proposed answer ... Except !
PJ said:
"...Unfortunately I can't edit the file without risking my whole System Works, but now it's pretty easy for the folks at Symantec to fix the problem A.S.A.P..."
That did not inspire too much confidence...
Did not fancy downloading modded file ... and so, nothing ventured ...

I obtained the freeby Resource Hacker Version 3.4.0 from http://www.angusj.com/resourcehacker/
Copied the offending NSW niscmnht.dll file.
Used Resource Hacker to edit the copy, deleting original block of code which was testing for IE browser to Ver 6, copied in PJ's "..better approach with the same results and upgradeable to ANY version of the IE.." block.
Recompiled and saved the file.
Plonked the .dll in the correct folder replacing the original (safely 'Ghosted' elsewhere).
The prog appears to now function correctly, 'rules' can now be modified with no script errors appearing.

Don't actually use the Anti-Virus Internet Worm Protection, a tentative attempt at firewalling in NSW2005 I think... But the error was an annoyance just knowing it existed !!

BTW
[url=http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=923893&SiteID=1&PageID=1]Belsky[/url] said:
FOR NORTON PRODUCTS FROM 2006 or newer:

2006 products were supposed to be fixed through liveupdate and 2007 products should not contain any errors at all. (At least regarding these issues) I have found out that norton is giving free upgrades to users of Norton Internet Security 2006, Norton AntiVirus 2006, Norton System Works 2006, or Norton System Works Premier 2006 with a current subscription (not expired). You are eligible to download and use the latest product versions (2007 or newer as they come out) for your Norton product as they become available during your subscription period. This is their new policy supposedly for future products so people can always have the newest software. This is probably to save them the money of supporting older versions. From symantecs website:

http://www.symantec.com/home_homeoffice/support/special/upgrade2007/index.jsp

THEY ARE NOT PUBLICIZING THIS SO PLEASE SPREAD THIS AROUND TO EVERYONE YOU KNOW WHO USES NORTON.
Also, the 2007 version of Internet Security doesn't automatically come with Norton AntiSpam, Ad Blocking, Norton Parental Control or Confidential Information Blocking (which all came with 2006 version of NIS)
BUT there is a free add-on download from Norton that adds all of these features for this version once you upgrade to 2007, here:

http://service1.symantec.com/SUPPORT/custserv.nsf/docid/2006092616462646[/QUOTE]

Symantec - Norton said:
As a Norton Internet Security 2006, Norton AntiVirus 2006, Norton System Works 2006, or Norton System Works Premier 2006 customer with a current subscription, you are eligible to download and use the latest product version updates for your Norton product as they become available during your subscription period. Symantec is providing these features to fine tune your PC and give you even greater protection from today's latest online threats including phishing websites, spyware, viruses, and hackers.
You can choose to retrieve these updates at anytime you want during your subscription period, or continue to use your existing security software, with no changes in functionality, for the remainder of your subscription period. You may renew your subscription at any time while subscription renewals are available.
;)
 
Sponsored Links
Hm - I only ever mention Norton if the sentance also has bargepole in it. ;)
 
Back
Top