1
I know the question is very strange, but it is a need that we have, I need to move to another page some variables that I rescued, but it is not only pass but redirect the page as well. I can’t use a window.Location, it needs to be by post.
What I have at the moment, the return is showing me the variables I need to pass, but as I said I need to redirect.
function preparaPagina() {
$('button.inline-button').click(function() {
var self = $(this);
var IdCota = self.siblings('.product-info').data('idcota');
var IdProduto = self.siblings('.product-info').data('produto');
var IdUsuario = self.siblings('.product-info').data('usuario');
var NomeUser = self.siblings('.product-info').data('nome');
dados = {"IdCota": IdCota, "IdProduto": IdProduto, "IdUsuario": IdUsuario, "NomeUser": NomeUser };
$.ajax({
type: 'POST',
url: 'iCadAutorizacaoTrans.php',
data : dados,
success:function(data){
console.log(data);
}
});
})
}
preparaPagina();
window.locationinside the sucess callback would not work?– Marconi
If not I didn’t understand this: I can’t use a window.Location, it needs to be by post.
– Marconi
That even Marconi, I need to pass these variables and redirect to the page I pop sending.
– adventistapr