Hey guys,

One of my scripts doesn't work in IE but I've managed to find the
offending code, not thanks to IE...

var dave = $("a:not(a[onClick*=pageTracker._trackPageview])[href
$=.pdf], [href$=.rtf], [href$=.ppt], [href$=.txt], [href$=.mp3], [href
$=.xml], [href$=.exe], [href$=.zip], [href$=.rar], [href$=.dmg], [href
$=.tar.Z], [href$=.tar.gz], [href$=.tgz]")

alert ( dave )

So using the above code dave is undefined in IE (works fine in
Firefox)

But using this code with the :not filter removed

var dave = $("a[href$=.pdf], [href$=.rtf], [href$=.ppt], [href$=.txt],
[href$=.mp3], [href$=.xml], [href$=.exe], [href$=.zip], [href$=.rar],
[href$=.dmg], [href$=.tar.Z], [href$=.tar.gz], [href$=.tgz]")

alert ( dave )

It works fine IE...

Can anyone tell me why my not filter isn't working?


Cheers,
James

Reply via email to