Thanks much Brandon!

On Sep 14, 11:05 am, "Brandon Aaron" <[EMAIL PROTECTED]> wrote:
> I think you want to get the event.target.href. You are passing the whole
> element which is an A tag. Which its toString() method reports the href
> value and is why the ""+event.target works.
>
> var resultlink = event.target.href;
>
> --
> Brandon Aaron
>
> On 9/14/07, skatta <[EMAIL PROTECTED]> wrote:
>
>
>
> > yeah, was weird though ... it worked up to 1.1.3
>
> > here is what it was - it was simply a click to a link, grabbing the
> > target ...
>
> > link like this - <a href="http://example.com/"; class="partInfo">link</
> > a>
>
> > if ($(event.target).is('.partInfo')) {
> > var resultlink = event.target;
> > // then load it
> > }
>
> > On Sep 14, 10:31 am, Stephan Beal <[EMAIL PROTECTED]> wrote:
> > > On Sep 14, 3:22 pm, skatta <[EMAIL PROTECTED]> wrote:
>
> > > > $(".dataWin").hide().load(resultlink);
>
> > > > this works ...
>
> > > > $(".dataWin").hide().load(""+resultlink+"");
>
> > > resultlink is aparently a non-String object of some type which is not
> > > accepted by load(). Your second line (the one which works) is casting
> > > it to a string. But you don't need both sets of quotes - one or the
> > > other will do:
>
> > > $(".dataWin").hide().load(""+resultlink);
>
> > > Th
> > at will also force it to be a string.

Reply via email to