I've used jquery within web reports to call an existing request handler and the callback has the output. I'd like to do that using a Web Report as the url instead of a request handler but so far have not been able to get it to work.
I have a simple web report that returns json formatted data and would like to be able to call it via but the callback is not happening. I've tried the url in a browser tab and it works.:
var url = "http://dev-server/otcs/cs.exe?func=ll&objid=154463&objAction=RunReport"
$.getJSON( url, {}, function(data,textStatus){
try {
if (data != undefined) {
$('#output1').val(results);
}
else {
$('#output1').val('no results found');
}
}
catch (e) {
alert('error testing json WR: '+e.message);
}
});