smartnavigation and body onload events with norton internet security

A

Andy Fish

Hi,

I managed to figure this one out for myself but thought I would post it here
for the general good.

I have an asp.net 1.1 application which was using smart navigation and also
had a <body onload=...> javascript event handler. One user complained that
the form wasn't working properly and it became obvious that the onload event
handler wasn't being called after a postback.

A bit of investigation later (who am I kidding? - a whole bucketfull of
investigation later) we realised the problem went away when that user
disabled Norton Internet Security (NIS). You can repro this quite simply -
just make a sample asp.net 1.1 form with smartnavigation turned on and an
onload event. on a PC with NIS enabled, the onload doesn't fire after a
postback.

fortunately the solution is fairly simple too. instead of:

<body onload="foo();">
...rest of page...
</body>

just use:

<body>
...rest of page...
<script>
document.body.onload = foo;
</script>
</body>

and all works fine. As far as I can tell the problem is specific to IE

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top