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
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