https://i.stack.imgur.com/5l63v.pngPardon the poorly phrased question, but I need some guidance on a specific requirement regarding opening a URL in a new page. Currently, I have designed an AJAX URL and I'm wondering if it's possible to open this AJAX URL in a new page like a regular URL. Otherwise, I may need to make extensive changes to the code provided below:
function pdfPrint(start_date , end_date , view){
var startDate = $('#setDate-'+start_date).val();
var endDate = $('#setDate-'+end_date).val();
data = {
"startDate":startDate,
"endDate":endDate,
"view":view,
"systemid":system_id,
};
$.ajax({
url: "{{route('download.pdf')}}",
type: "get",
'headers': {
'X-CSRF-TOKEN': '{{ csrf_token() }}'
},
data:data,
}).done(downloadFile);
}