-
$.ajax ({
-
type: 'POST',
-
url: '/reports/_report.php',
-
dataType: 'json',
-
data: filter,
-
global: false,
-
success: displayReport,
-
error: function ( request, errtype ) {
-
var e = arguments[2] || null;
-
-
alert ( 'An error occurred while loading this report. ' e ? e.message : 'No additional information is available.' );
-
$( '#out-' report ).empty()
-
.append ( '<strong><em>Error</em></strong>' )
-
.attr ( 'title', e.message )
-
.css ( 'cursor', 'help' );
-
},
-
complete: function() {
-
$(indicator).css ( 'visibility', 'hidden' );
-
$(src).css ( 'opacity', '1' ).bind ( 'click', runReport );
-
}
-
});