Subversion Repositories SmartDukaan

Rev

Rev 23173 | Rev 23193 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23173 Rev 23181
Line 242... Line 242...
242
	    if(xhttp.readyState == 4 && xhttp.status === 500){
242
	    if(xhttp.readyState == 4 && xhttp.status === 500){
243
	    	internalServerErrorAlert(xhttp.responseText);
243
	    	internalServerErrorAlert(xhttp.responseText);
244
	    }
244
	    }
245
	};
245
	};
246
	// Post data to URL which handles post request
246
	// Post data to URL which handles post request
247
	xhttp.open("POST", context+"/getInventoryItemAgingByInterval");
247
	xhttp.open("POST", context+"/downloadInventoryItemAgingByInterval");
248
	xhttp.setRequestHeader("Content-Type", "application/json");
248
	xhttp.setRequestHeader("Content-Type", "application/json");
249
	// You should set responseType as blob for binary responses
249
	// You should set responseType as blob for binary responses
250
	xhttp.responseType = 'blob';
250
	xhttp.responseType = 'blob';
251
	xhttp.send(data);
251
	xhttp.send(data);
252
}
252
}