Firefox 2.0 and XML Problems
Hello,
below is the code that we use to dynamically set the header text from the xml return. It works fine within ie but does not work for mozilla/firefox. Reading through the support forum, I found that we would need to use XMLSerializer? If anyone could assist on how to properly redo this function to work with both ie and firefox, I would appreciate it.
var columnTextXpath = "//result/headers/header";
var model_response = data2.response;
data2.response = function( xml ) {
var hNodes = xml.selectNodes( columnTextXpath );
if (hNodes) {
var h = new Array();
for( i=0; i<hNodes.length; i++ ) {
h.push( hNodes[i].text );
}
obj2.setHeaderText( h );
}
model_response.call( data2, xml );
}
Regards,
below is the code that we use to dynamically set the header text from the xml return. It works fine within ie but does not work for mozilla/firefox. Reading through the support forum, I found that we would need to use XMLSerializer? If anyone could assist on how to properly redo this function to work with both ie and firefox, I would appreciate it.
var columnTextXpath = "//result/headers/header";
var model_response = data2.response;
data2.response = function( xml ) {
var hNodes = xml.selectNodes( columnTextXpath );
if (hNodes) {
var h = new Array();
for( i=0; i<hNodes.length; i++ ) {
h.push( hNodes[i].text );
}
obj2.setHeaderText( h );
}
model_response.call( data2, xml );
}
Regards,
Steve
August 12,