File opening via method Load jquery [closed]

0

I do not even know where to start, so I'm going to have it simplified! I'm trying to create an admin page, where the data has to be sent via $ .post and get via $ .get, but when I try to read the php file where the script is to read the data, !!

Jquery Code

    $(document).ready(function(){
        alerta();
        Ler();
    });

    function Ler(){
setTimeout("$('#pagina').load('http://www.teste.dev/views/categoria/mostrar.php', function(){ $('#loaderImage').hide(); });", 1000);
    }
    
asked by anonymous 05.06.2014 / 18:13

1 answer

1

What error is returned?

Is your absolute path correct?

Does the "alert ()" function exist in your script?

Try changing your code:

function Ler(){
    setTimeout(function(){
        $('#pagina').load('http://www.teste.dev/views/categoria/mostrar.php',function(){ 
            $('#loaderImage').hide(); 
        });
    }), 1000);
}
    
05.06.2014 / 18:59