I'm sure I'm doing something stupid, but I could use some help with this.

I seem to be on the wrong end of Norton Internet Security blocking more than ads. It seems to be complaining about the Pair.com banner ad. OK, fine, it doesn't show the ad. On all (most?) pages on this site except for Recently Active Threads, everything displays fine. But on Recently Active Threads the javascript gets mangled (I think), and all I get after the basic navigation header is, in plaintext,

function toggleMenu(id){ element = document.getElementById(id); elemen +t.className = (element.className.toLowerCase() == 'expanded' ? 'colla +psed' : 'expanded'); }

I'm using Mozilla Firefox v1.0.4.

Turning off NIS completely, I get the expected content, properly displayed, including the pair.com ad.

I've looked in the log viewer for NIS, and it reports the pair.com banner ad as being blocked, because of the dimensions. I've added a permit rule for the permonks.com site, and html string with "pair.com" in it. Now I get the ad, but still the same misinterpreted javascript in plaintext. And the log doesn't show anything else being blocked.

I thought I recalled a user setting in perlmonks to turn off the banner ads, but I can't find it now.

I'd like to keep NIS active, allow the pair.com ads, and get this one page to load correctly.

I checked the page sources with NIS on and off, and the first difference, in the badly formed page (embedded in <code> tags):

<script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script>
For context, you can see this near the end of the badly formed page (embedded in <code> tags):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- Took this out for IE6ites "http://www.w3.org/TR/REC-html40/loose. +dtd" --> <html lang="en"> <head> <title>Recently Active Threads {id://397425} &#091;superdoc&#093; +</title> <link rel="stylesheet" href="?node_id=234493" type="text/css" /> <link rel="stylesheet" href="?node_id=6181" type="text/css" /> <!-- No CSS Link in User Settings --> <style type="text/css"> textarea{width:75%;height:25em;} * { font-size:100% !important } </style> <link rel="icon" href="/favicon.ico" /> </head> <body id="id-397425"> <!-- monktainer --> <!-- monkbar2001 --> <table id="monkbar" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="left" width="100%"> <a href="http://pair.com"> <img src="http://promote.pair.com/i/pair-banner-current.gif" height =" 60" width =" 468" alt =" Beefy Boxes and Bandwidth Generously Provided by pair Netw +orks" /> </a> </td> <td rowspan="2" align="right" valign="bottom"> <img src="./images/clearpixel.gif" width="0" height="75" alt="" class="spacer" /> <!-- Monk Pic Turned Off In User Settings --> </td> </tr> <tr class="monkquip"> <td class="monkquip" height="10" valign="bottom" width="100%" > <!-- Monk Quip Turned Off In User Settings --> </td> </tr> <tr class="titlebar"> <td class="titlebar"> <form method="get" action="index.pl" enctype="application/x-www-form-urlencoded" > <img src="./images/clearpixel.gif" width="5" height="1" alt="" class="spacer" /> <input type="text" name="node" size="20" maxlength="80" /> <input class="titlebar" type="submit" value="Search" name="go_button" /> </form> </td> <td class="titlebar" id="mb2001titlebar" align="right" > <a class="titlebar" href="index.pl" > Perl&nbsp;Monks </a> </td> </tr> </table> <!-- /monkbar2001 --> <!-- Begin title bar --> <table width="98%" align="center" id="titlebar-top"> <tbody> <tr> <td valign="middle" class="titlechooser"> <!-- superdoc title chooser(1) --> <h3 class="superdoc">Recently Active Threads</h3> <!-- /superdoc title chooser(1) --> </td> <td valign="top" align="right" class="monktitlebar"> <!-- monktitlebar --> <font size="2" class="topnavmenu"><span class="link-sep"><span + class="navmenu-link-sep">&nbsp;|&nbsp;</span></span><span id='titleb +ar-link-000'><a HREF="?op=logout;node_id=109">log&nbsp;QM&nbsp;out</a +></span><span class="link-sep"><span class="navmenu-link-sep">&nbsp;| +&nbsp;</span></span><span id='titlebar-link-001'><a HREF="?node_id=29 +4463">QM</a></span><span class="link-sep"><span class="navmenu-link-s +ep">&nbsp;|&nbsp;</span></span><span id='titlebar-link-002'><a HREF=" +?node_id=131">The&nbsp;Monastery&nbsp;Gates</a></span><span class="li +nk-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</span></span><sp +an id='titlebar-link-003'><a href="?node=Super%20Search">Super&nbsp;S +earch</a></span><span class="link-sep"><span class="navmenu-link-sep" +>&nbsp;|&nbsp;</span></span><br /> <span class="link-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</s +pan></span><span id='titlebar-link-004'><a href="?node=Seekers%20of%2 +0Perl%20Wisdom">Seekers&nbsp;of&nbsp;Perl&nbsp;Wisdom</a></span><span + class="link-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</span> +</span><span id='titlebar-link-005'><a href="?node=Meditations">Medit +ations</a></span><span class="link-sep"><span class="navmenu-link-sep +">&nbsp;|&nbsp;</span></span><span id='titlebar-link-006'><a href="?n +ode=Perl%20Monks%20Discussion">PerlMonks&nbsp;Discussion</a></span><s +pan class="link-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</sp +an></span><span id='titlebar-link-007'><a href="?node=Snippets%20Sect +ion">Snippets</a></span><span class="link-sep"><span class="navmenu-l +ink-sep">&nbsp;|&nbsp;</span></span><br /> <span class="link-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</s +pan></span><span id='titlebar-link-008'><a href="?node=Obfuscated%20C +ode">Obfuscation</a></span><span class="link-sep"><span class="navmen +u-link-sep">&nbsp;|&nbsp;</span></span><span id='titlebar-link-009'>< +a href="?node=Reviews">Reviews</a></span><span class="link-sep"><span + class="navmenu-link-sep">&nbsp;|&nbsp;</span></span><span id='titleb +ar-link-010'><a href="?node=Cool%20Uses%20for%20Perl">Cool&nbsp;Uses& +nbsp;For&nbsp;Perl</a></span><span class="link-sep"><span class="navm +enu-link-sep">&nbsp;|&nbsp;</span></span><span id='titlebar-link-011' +><a href="?node=Perl%20News">Perl&nbsp;News</a></span><span class="li +nk-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</span></span><sp +an id='titlebar-link-012'><a href="?node=Categorized%20Questions%20an +d%20Answers">Q&amp;A</a></span><span class="link-sep"><span class="na +vmenu-link-sep">&nbsp;|&nbsp;</span></span><span id='titlebar-link-01 +3'><a href="?node=Tutorials">Tutorials</a></span><span class="link-se +p"><span class="navmenu-link-sep">&nbsp;|&nbsp;</span></span><br /> <span class="link-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</s +pan></span><span id='titlebar-link-014'><a href="?node=Code%20Catacom +bs">Code</a></span><span class="link-sep"><span class="navmenu-link-s +ep">&nbsp;|&nbsp;</span></span><span id='titlebar-link-015'><a href=" +?node=Perl%20Poetry">Poetry</a></span><span class="link-sep"><span cl +ass="navmenu-link-sep">&nbsp;|&nbsp;</span></span><span id='titlebar- +link-016'><a href="?node=Recently%20Active%20Threads">Recently&nbsp;A +ctive&nbsp;Threads</a></span><span class="link-sep"><span class="navm +enu-link-sep">&nbsp;|&nbsp;</span></span><span id='titlebar-link-017' +><a href="?node=Newest%20Nodes">Newest&nbsp;Nodes</a></span><span cla +ss="link-sep"><span class="navmenu-link-sep">&nbsp;|&nbsp;</span></sp +an><span id='titlebar-link-018'><a href="?node=Offering%20Plate">Offe +ring&nbsp;Plate</a></span><span class="link-sep"><span class="navmenu +-link-sep">&nbsp;|&nbsp;</span></span></font><br /> <!-- /monktitlebar --> </td> </tr> </tbody> </table> <table width="98%" align="center" id="titlebar-bottom"> <tbody> <tr> <td valign="middle" class="titlechooser"> <!-- superdoc title chooser(2) --> <span class="addlinks">(&nbsp;#<a HREF="?node_id=397425">3974 +25</a>=superdoc:&nbsp;<a HREF="?displaytype=print;node_id=397425">pri +nt</a>&nbsp;<a HREF="?replies=1;displaytype=print;node_id=397425">w/& +nbsp;replies</a>, <a HREF="?displaytype=xml;node_id=397425">xml</a>&n +bsp;)</span> <!-- superdoc title chooser(2) --> </td> <td valign="middle" align="right" class="monktitlebar"> <a href="?node=PerlMonks%20FAQ">Need Help??</a> </td> </tr> </tbody> </table> <!-- End title bar --> <!-- Begin main --> <center> <table width="98%"> <tr> <td width="80%" valign="top" class="main_content"> <!--contained stuff--> <script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script> <script type="text/javascript"></script> function toggleMenu(id){ element = document.getElementById(id); element.className = (element.className.toLowerCase() == 'expanded' ? 'collapsed' : 'expanded'); }

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re: Norton Internet Security blocking some Perlmonks content
by demerphq (Chancellor) on Jun 04, 2005 at 06:22 UTC

    The SymError() stuff is being added by NIS, which is also corrupting the following javascript. That section of the page should look like:

    <center> <table width="98%"> <tr> <td width="80%" valign="top" class="main_content"> <!--contained stuff--> <script type="text/javascript"> function toggleMenu(id){ element = document.getElementById(id); element.className = (element.className.toLowerCase() == 'expanded' ? 'collapsed' : 'expanded'); } </script>

    So it would appear that this is a bug or unwanted behaviour by NIS. I cant think what you can do but put a page specific exclusion in for RAT assuming that you can do so.

    ---
    $world=~s/war/peace/g

Re: Norton Internet Security blocking some Perlmonks content
by hossman (Prior) on Jun 04, 2005 at 07:51 UTC

    this is a long standing and well documented "feature" of Norton. google has tons of discussions about it, and symantec acknowledges that sometimes it doesn't work right, and you should disable it for those pages: using these instructions.

Re: Norton Internet Security blocking some Perlmonks content
by demerphq (Chancellor) on Jun 04, 2005 at 11:40 UTC

    Can you tell me whether the patches I applied today helped at all?

    ---
    $world=~s/war/peace/g

      No effective difference.

      The page source now has this addition (in bold):

      <!-- <script></script> -->
      <script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script>
      Thanks for your help.

      -QM
      --
      Quantum Mechanics: The dreams stuff is made of

Re: Norton Internet Security blocking some Perlmonks content
by QM (Parson) on Jun 05, 2005 at 15:23 UTC
    Update to the original post: None of the suggestions here and elsewhere (inlcuding Symantec's own info) have worked.

    Unless I completely disable NIS (not just Ad Blocking), the page is not displayed properly.

    2nd Update: Today it works! I'm not sure if my NIS was updated (I share this machine with the household, and they're all asleep now), or if something changed on PM that affected it.

    Here's the old html that didn't work:

    <script type="text/javascript"></script> function toggleMenu(id){ element = document.getElementById(id); element.className = (element.className.toLowerCase() == 'expanded' ? 'collapsed' : 'expanded'); }
    and here's the new that does:
    <script type="text/javascript"> function toggleMenu(id){ element = document.getElementById(id); element.className = (element.className.toLowerCase() == 'expanded' ? 'collapsed' : 'expanded'); } </script>
    Notice the </script> tag moved to the end of the function definition. (Why didn't I notice this before?)

    If anyone can shed light on this, I'd be most grateful.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of