Ajax fix for IE breaks FireFox

Ajax fix for IE breaks FireFox

I changed a recent ajax POST call that was receving an XML result and processing with a series of find() in the success:     It had worked fine with Firefox but failed in IE.  I found some documentation that explained how the dataType needed to be different for IE, and the result had to be process first for IE using Microsoft DOM.   The IE worked like a charm.   But now Firefox isn't.  I can see the the POST does hit the backend code that finishes successfully.   But then nothing happens in the browser, and Firebug stops are not being hit once the submit takes place.   Here is the current code -

                $.ajax({
                    type: "POST",
                    url:  data_str,
                    dataType: ($.browser.msie) ? "text" : "xml",
                    success: function(data) {
                       
                        var xml;
                        if ($.browser.msie && typeof data == "string") {
                           xml = new ActiveXObject("Microsoft.XMLDOM");
                           xml.async = false;
                           xml.loadXML(data);
                        } else {
                           xml = data;
                        }

                       
                        var sendACH = $(xml).find('SendACH').text();
                        ....

(I added the $.browser.msie in the result check because I thought it somehow got into the first part and barked on ActiveXObject.  Now I can't repro that)

Any insight is greatly appreciated