Bah! I should have obeyed the cardinal rule of event binding: Thou
shalt not bind events in markup!

function myAction() {
 this.blur(); // this this is not that this
}

function myProperAction {
 this.blur(); // this this is that this
 return false;
}

$('a...').bind('click',  myProperAction);
...
<a ... onclick="myAction(); return false;">...

--Erik

On 6/13/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
but you probably want that.blur()


On 6/13/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> this is not this! this is the window!
>
> a href="..." onclick="myaction(this); return false;"
>
> passes this as a parameter for later use.
> function myaction(that) {
> $(that).blur(); // blurs that which was this
> ...some animation and another actions...
> }
>
>
>
>
>
> On 6/13/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> >
> > I think you maybe want this.blur() instead of $(this).blur()
> >
> > --Erik
> >
> >
> > On 6/13/07, Sergei <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello,
> > >
> > > I have a problem in MSIE 6 using such code:
> > >
> > > a href="..." onclick="myaction(); return false;"
> > >
> > > JS:
> > >
> > > function myaction() {
> > > $(this).blur(); // blurs a whole window in MSIE6!
> > > ...some animation and another actions...
> > > }
> > >
> > > The problem is, that in MSIE6
> > >
> > > $(this).blur();
> > >
> > > blurs NOT the link, but a WINDOW. What's a workaround? Or is this a
> > > bug?
> > >
> > > Note that it works in Firefox 2 and Opera 9.
> > >
> > >
> >
>
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ



--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to