Force question about external source

Force question about external source

m44mirim44miri Posts: 12Questions: 0Answers: 0
edited July 2012 in General
when I using the datatables in the tomcat with internal source :
$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "../server_side/scripts/server_processing.php"
} );
} );

datatables working good but when i using external source:

$(document).ready(function() {
$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://IP address/server_side/scripts/server_processing.php"
} );
} );

datatables not showing any think in the table (showing Processing message)
can you help me about this actin

Replies

  • allanallan Posts: 63,538Questions: 1Answers: 10,476 Site admin
    You are trying to do a cross domain Ajax request - browsers will refuse to do that for security reasons - see http://en.wikipedia.org/wiki/XMLHttpRequest#Cross-domain_requests .

    You can use jsonp to work around this.

    Allan
This discussion has been closed.