[jQuery] Re: href attribute in ajax generated pages on IE

2008-01-08 Thread alexanmtz
Hi Karl, I never heard about the pathname property, but yeah, it works great. Very thanx for the solution, I accomplished it making a regular expression to extract the pathname, but this way works great and clean. Alexandre Magno Web developer http://blog.alexandremagno.net (brazilian blog of j

[jQuery] Re: href attribute in ajax generated pages on IE

2008-01-08 Thread Karl Swedberg
Have you tried var path = this.pathname; ? That should do it. However, I think either FF or IE includes the beginning slash while the other doesn't, so you'll probably have to use a replace() in there too. Try this: var path = this.pathname.replace(/^\//,'') --Karl _ Kar

[jQuery] Re: href attribute in ajax generated pages on IE

2008-01-08 Thread x0nix
Exactly the same problem here ... any workarounds found? On Jan 8, 1:11 pm, alexanmtz <[EMAIL PROTECTED]> wrote: > Hi everyone, > > Im defeat a great problem to read the href attribute on IE. > > If I had something like this: > > $(".somelink").click(function(){ > > var path = $(this).attr("hre