Re: IE6 onlick not firing



Thanks for everybody's replies.

We have tried changing to <span> and that didn't help. Also this behaviour
occurs for ALL onclock events in the app - not just anchors!

There is too much code to change to a different mechanism and I am very
suspicious that the problem occurs only for some users and only after some
infrastructure changes in our company (i.e. new dev machines and new active
directory profiles).

This leads me to think it may be something to do with an IE / Active Dir
setting rather than code. What settings would disable inline onlick events
though?

"Roland Hall" wrote:

> "Will Holley" wrote in message
> news:A0A69E91-0735-49EC-8F27-5D89210473EA@xxxxxxxxxxxxxxxx
> : We have a number of anchor tags in our web app which look like:
> :
> : <a href='javascript:void(0)' class = 'btnExpand' onclick = 'return
> : showDetails()'>+</a>
> :
> : The onclick event appears to function correctly and has done for many
> : months. We recently bought a bunch of new development machines and for
> some
> : developers, the onclick event does not fire.
> :
> : However, if we change the code to be:
> :
> : cell.innerHTML = "<a href='javascript:void(0)' class='btnExpand'>+</a>";
> : cell.firstChild.onclick = showDetails;
> :
> : then all is ok again!
> :
> : A bit of info:
> :
> : 1. Our app is targeted at IE6+.
> : 2. Changing all events in the app is not an option.
> : 3. On one machine the original code works for some users and not for
> others
> : (active dir 2003 profiles - all admins and supposedly identical).
> : 4. Conversely, the behaviour follows the user profile around on whatever
> : machine they happen to use.
> : 5. In a test page in the same app inline onclick events always work for
> all
> : users.
> :
> : We are completely stumped so if anybody has any ideas as to what may cause
> : this behaviour I would greatly appreciate it.
>
> Hi Will...
> If you're wanting to expand (display) hidden elements, I have some examples
> that might help.
> http://kiddanger.com/lab/showhide4.html
>
> --
> Roland Hall
> /* This information is distributed in the hope that it will be useful, but
> without any warranty; without even the implied warranty of merchantability
> or fitness for a particular purpose. */
> Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
> WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
> MSDN Library - http://msdn.microsoft.com/library/default.asp
>
>
>
.