[jQuery] Click not firing in ie6 /7

[jQuery] Click not firing in ie6 /7


Hello,
I have the following code works fine in ff and safari but the click event is
not handled in ie6/7
// add tracking pcWebServiceURL to the current page
        function addTracking(){
            var _WSURL = pcWebServiceURL;
            
        
            // examine every link in the page
            $('a').each(function(){
                var u = $(this).attr('href');
                
                if(typeof(u) != 'undefined'){
                    var newLink = decorateLink(u);
                    if(newLink.length){
                        
                        $(this).click(function(){
                                
                        try{
                         var pl = new SOAPClientParameters();
         pl.add("Message", opts.message);
         pl.add("LogType",6);
                 pl.add("URL",newLink);
         SOAPClient.invoke(_WSURL, "TrackAction", pl,
false);
}
catch(e){
alert(e);
}
                            //return false;
                        });
                    }
                }                
            });
        }
basically it will add click event to all href's that are pdf. Then do some
tracking using webservice which i call using javascript soap client. I
added alerts to the loop just to make sure the links were getting wired up
which they definately are. I also added alert on inside click event to
ensure link click was firing i got nothing. FF and safari work fine. Any
ideas?
Thanks in advance
Ismail
--
View this message in context: http://www.nabble.com/Click-not-firing-in-ie6--7-tp19103848s27240p19103848.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.