This solution is good for Firefox, but does not work in IE.. :(
Other tips?
On May 17, 10:19 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Alex wrote:
> > I wonder, how in Xbrowser way can I make a difference between a normal
> > userclickand a programmatic triggeredclick? Is it possible?
>
> > Thank you!
>
> A realclickprovides an clientX property on the event object, so:
>
> $('a').bind('click', function(e) {
> if (e.clientX) {
> alert('Realclick');
> } else {
> alert('Triggeredclick');
> }
>
> });
>
> Maybe there is a more proper solution, but I'm using that for Tabs and
> it works fine.
>
> -- Klaus