Very good, I have an ajax function that calls a file and returns a variable, once I have that variable that is "objJson", I would like to open a page and pass that variable objJson. I hope you understand.
function login(){
usuario=$('#idUsuario').val();
clave=$('#idClave').val();
var parametros = {
"ap":"4c",
"usuario":usuario,
"clave":clave,
}
$.ajax ({
data: parametros,
url: "/l/php/login.php",
type: "POST",
success: function(data){
var objJson=JSON.parse(data);
location.href ='principal.html';
});
}
Thank you very much