The following code writes successfully the PDF content to my browser window, so I see it as tokenised characters starting with %PDF
But I want it to just automatically download to the browser then the browser will prompt the user, save or open etc
function pricingSummary(sReportName,sType) {
var url = '/Report/PricingByMDS';
var data = {
searchSPID: $('#SearchSPID').val().toString(),
searchPremise: $('#SearchPremise').val().toString(),
searchPostcode: $('#SearchPostcode').val().toString(),
optSupplyPointStatus: $("input[name='optSupplyPointStatus']:checked").attr("id"),
optVacant: $("input[name='optVacant']:checked").attr("id"),
optOurSpids: $("input[name='optOurSpids']:checked").attr("id"),
searchCompany: $('#SearchCompany').val().toString(),
searchLP: $('#SearchLP').val().toString(),
sType: sType,
sReportName: sReportName
};
$("#ResultsList").load(url, data, function () {
});
}