// how to work around this around
$.ajax({
url: "/oogc/HESS/_vti_bin/lists.asmx",
type: "POST",
dataType: "xml",
data: soapEnv,
complete: processResult,
contentType: "text/xml; charset=\"utf-8\""
});
var test=[];
var pic;
var images = [];
function processResult(xData, status) {
$(xData.responseXML).find("z\\:row").each(function() {
// document.write($(this).attr("ows_EncodedAbsUrl") + ' > ' + $(this).attr("ows_FileRef"));
test = $(this).attr("ows_FileRef").split('#')[1];
test = test.split('/');
pic = test.pop();
// document.write(last);
//Some data manipulation here!
//Here each row is push into images[] that is declared out but -- please see below
images.push(test.join( '/' ) + '/_w/' + pic.replace(/.([^.]*)$/, "_$1") + '.' + $(this).attr("ows_DocIcon"));
});
}
//This test fails and I get nothing, how could I work this out?
I need to work with this array
alert(images.length); //Returns 0
Thanks in advance