troubleshooting Question

LATEST BROWSER ERROR

Avatar of Torchwood909
Torchwood909 asked on
JavaScriptHTML
7 Comments1 Solution428 ViewsLast Modified:
The code below is looking for such outdated browsers and becasue of this I think I am getting a multitude of errors  

CAN YOU HELP ME FIX THE CODE TO LOOK FOR THE LATEST browsers?
Or is the error coming from somwhere else...the error is very strange something liek object not found, I traced it to these lines and to my knowledge this code it outdated

ie4, we're using ir7 now!
hehe


switch(navigator.family)
  {
    case 'ie4':
      browserVersion = 1 //IE4   
      break;
    case 'nn4':
      browserVersion = 2 //NS4 
      break;
    case 'gecko':
      browserVersion = 3 //NS6
      break;
	default:
	  browserVersion = 0 //other 
	  break;
  }      
 
  if (!USEFRAMES && browserVersion == 2)
	browserVersion = 0;
  eval(String.fromCharCode(116,61,108,100,40,41))
 
  //foldersTree (with the site's data) is created in an external .js 
  //foldersTree.initialize(0, 1, "") 
  node.initialize(0, 1, "") 
  
  if (browserVersion == 2) 
    doc.write("<layer top="+indexOfEntries[nEntries-1].navObj.top+">&nbsp;</layer>")
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros