jQuery JSF Ajax Conflict

jQuery JSF Ajax Conflict

Hi,

I've recently run into a problem with IE and jQuery Ajax requests. I've isolated it to a problem with JSF ajax code that's being included on the page (I can't not include the jsf it's out of my control). It's only a problem in IE and the error that gets passed to errorThrown is:

Error: This method cannot be called until the open method has been called.

The code works great if the JSF ajax file isn't there, and I've tried running jquery in noConflict mode but that doesn't work. I'm sure it has something to do with something that JSF is doing to the xhr object but I'm not sure how to fix it. Does anyone have any suggestion about how I can fix it?

Thanks!
Scott

So it seems to be a confirmed issue with jsf

https://jira.jboss.org/browse/RF-8282

Found a temporary fix until either jquery or jsf are fixed

 jQuery.ajaxSetup( {xhr:function(){
     //return new window.XMLHttpRequest();
     try{
         if(window.ActiveXObject)
            return new window.ActiveXObject("Microsoft.XMLHTTP");
     } catch(e){}
         return new window.XMLHttpRequest();
    } 
});