2
I wonder if there is a way after recovering a variable from the URL pass to another page and return the result in a load. I’m using the following script that normally recovers the variable, but does not move to the next page. It is just to better understand what I need. 
In the URL http://noticias.php?categoria=23, take the variable normally but in the load comes the information that the page resposta.php did not receive the variable.  I would like to move to another page before displaying the result on load. What would be the right way?
$(document).ready(function()
{
    $('#teste').html("<img src='js/load.gif'>");
    var variaveis=location.search.split("?");
    var quebra = variaveis[1].split("=");
    var categoria = + quebra[1];
    var URL='resposta.php';
    var dataString = 'categoria=' + categoria ;
    $.ajax({
        type: "POST",
        url: URL,
        data: dataString,
        cache: false,
        success: function(html){
            $('#teste').load('resposta.php');
        }
    });
});
</script>
use the window.Location to receive the parameters
– Diego Vieira
receive I need to resend before showing the result in load
– Gonsales