For those that don't want to upgrade to the new rev just yet, the
following line will give you access to the 'src' attribute without a
whole URL:

/\/?([^\/]*)$/.exec($(this).attr("src"))[1]

Where 'this' is an image.

- jake

On 2/9/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
> Yes it was fixed in REV 1293. http://jquery.com/dev/svn/rev/1293/
>
> --
> Brandon Aaron
>
> On 2/9/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> > That's great news, Brandon! Thanks!
> >
> > Was this a post-1.1.1 fix?
> >
> >
> > --Karl
> > _________________
> > Karl Swedberg
> > www.englishrules.com
> > www.learningjquery.com
> >
> >
> >
> >
> > On Feb 9, 2007, at 10:03 AM, Brandon Aaron wrote:
> >
> > We just fixed this for the href attribute. Is IE actually returning
> > the whole URL? Are there other attributes that IE doesn't return what
> > is actually there?
> >
> > --
> > Brandon Aaron
> >
> > On 2/9/07, Dave Methvin <[EMAIL PROTECTED]> wrote:
> >
> >
> >    switch($(this).attr("src")) {
> >        case '1.gif':
> >
> > That definitely won't work in IE, because IE gives you the whole URL
> > including http:// and domain. You'll need to strip that off before your
> > switch.
> >
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
> >
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
> >
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to