views:

171

answers:

2

Hi,

One of my clients has Norton 360 installed on his computer, and it's interfering with the javascript in my web pages. Not all JS, just some.

Simple things like

<a href="page.html" onclick="somefunc(); return false;">

don't work. Also using jQuery to attach on onclick event to an a tag doesn't work either:

// doesn't work
$(document).ready(function() {
  $("#old_trans_link").click(viewOldTrans);
});

What should I tell my client? What should I tell our users? Is there any way around this madness?

Everyone doing JS heavy pages must run into this. How do they deal with it?

Edit: He also has McAfee installed at the same time.

+2  A: 

They probably are using some sort of web shield I assume. Try asking them to add an exception to your site

Edit:Adding Link

http://www.symantec.com/norton/360

Under "Advanced Protection"

"Blocks browser, OS, and application threats; protects against infected Web sites"

So I assume there should be a way to add an exception

ram
+4  A: 

I've never heard of anti-virus interfering with in-browser JavaScript in that way. My best guess would be that they have their virus scanner running at a very aggressive security level.

The easiest options, in terms of amount of work required to address this issue would be:

  • Recommend your users lower their security settings
  • See if they can whitelist your site so the application will work correctly
  • Recommend a browser other than Internet Explorer, or suggest they install Chrome Frame

Of course, if these are not feasible options, you may have to go with a more simplistic approach to using JavaScript on your page. Instead of requiring JavaScript on the site, use it to enhance the site and make features easier to use.

To do this, you would have to make everything on your site work with JavaScript disabled. Have everything perform POSTs to the server for processing. JavaScript would sit on top of all of this to enhance the experience for users who have JavaScript working. In this scenario, things like anti-virus blocking click events on anchor links would end up with a submission to the server.

Of course, this is a lot more work on your part because it almost requires writing 2 versions of the site. This is an argument that is brought up all the time online, even when developing StackOverflow, as was discussed on their blog.

You're better off telling them to add an exception for your site.

Dan Herbert
he sent me a screen shot, it's actually running in the browser as some kind of tool bar. You're right of course about making JS non-required.
NXT
Ugh... browser toobars...
Dan Herbert