Ajax - Error 500 (Internal Server Error)

Asked

Viewed 6,395 times

0

GET http://localhost/Ultraweb_20150629_adriano/Ultraweb/index.php/supervisaocontroller/stateMaquinaMobAjax/37/37/100/500 500 (Internal Server Error)

My job

function estadoDinamico(indice, key, width, height){


    $.ajax({
        type:'GET',
        url : '<?= base_url(); ?>index.php/supervisaocontroller/estadoMaquinaMobAjax/'+key+'/'+indice+'/'+width+'/'+height,
        success: function(data){

            $('#contentSupervisao'+indice).html(data);
            $.ajax({
                type:'GET',
                url : '<?= base_url(); ?>index.php/supervisaocontroller/ConfigPersonalizadaAjax/'+key+'/'+indice,
                success: function(data){

                    $('#contentConfigPers'+indice).html(data);
                    setTimeout(
                            function(){
                                estadoDinamico(indice, key, width, height);
                            }, 2000
                    );
                }
            });
        }
    });
};

then error occurs, someone could help??????

1 answer

0


I looked in the browser console (F12 - Chrome) in the network tab, on the page where the Internal Server Error occurred and saw what the error was exactly.

As the function comes from an ajax request the error is not shown in the console or in the PHP error. Only error 500 is shown. In the tab shows the language error, which in my case php, and was the lack of a Procedure to run the method of creating html for the screen.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.