Re: IE6 onlick not firing
- From: "Roland Hall" <nobody@nowhere>
- Date: Wed, 29 Jun 2005 11:37:13 -0500
"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
.
- Follow-Ups:
- Re: IE6 onlick not firing
- From: Will Holley
- Re: IE6 onlick not firing
- References:
- IE6 onlick not firing
- From: Will Holley
- IE6 onlick not firing
- Prev by Date: Re: IE6 onlick not firing
- Next by Date: Re: What does this do?
- Previous by thread: Re: IE6 onlick not firing
- Next by thread: Re: IE6 onlick not firing
- Index(es):
Relevant Pages
|