By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,493 Members | 3,090 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,493 IT Pros & Developers. It's quick & easy.

smartnavigation and body onload events with norton internet security

P: n/a
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

Apr 12 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.