Note that there are some explanatory texts on larger screens.

plurals
  1. POajax json response error 404 on IIS7
    text
    copied!<p>I'm using datatables on my webpage and it works fine on localhost, but it's not working on my IIS server. It gives me an "404 Not Found Error" and the response on Firebug says "No input file specified".</p> <p>Everything else on ajax works fine in my website, this is the only one giving me trouble. I'm thinking it's JSON problem because the other ajax requests I'm using are HTML responses. So I added the Mime Type 'application/json' to the IIS Server, but no luck. Also tried updating the doc_root in my php.ini, didn't work.</p> <p>This is my code:</p> <pre><code>$('#example').dataTable( { "bJQueryUI": true, "oLanguage": { "sLengthMenu": "Mostrar _MENU_ registros por página", "sZeroRecords": "No se encontraron clientes con esa descripcion", "sInfo": "Mostrando _START_ a _END_ de _TOTAL_ registros", "sInfoEmpty": "Mostrando 0 de 0 registros", "sInfoFiltered": "(filtrado desde _MAX_ registros totales)", "sProcessing": "Procesando..", "sSearch": "Buscar:", }, "bProcessing": true, "sAjaxSource": "&lt;?php echo base_url();?&gt;index.php/clientes_particulares/get_client_data", "aoColumns": [ /* id */ {"bSearchable": false, "bVisible": false}, /* Cedula */ null, /* Pasaporte */ null, /* Nombre */ null, /* Apellido */ null, /*Fecha de nac*/ null, /*Venc Pasa*/ null, /*Email*/ null, /*preferencia_asiento*/ null, ], } ); </code></pre> <p>By the way if I put that URL in the browser it doesn't work either, I have to add a "?" after the "index.php" in order to work and I see the output I'm expecting, but if I add this "?" in the sAjaxSource url it gives a '400 Bad Request' error. So again I'm almost certain it's json problem with the server, but ran out of ways to resolve it. </p> <p>I'm using Codeigniter Framework and its datatables plugin.</p> <p>Any help would be appreciated, thanks in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload