I know the question is strange and may seem nonsensical, but I need a response, even if it's for impossível
.
I do a search in my index
and I need to pass the result on it to another page positioning in a div.
I did some research and tried some alternatives, but without success and as I said, I do not even know if this is possible.
What I have already got is this, the return of a search, I consult the response
and I already visualize the desired content.
$(function() { $("#frmBusca").validate({ submitHandler: function(form) { var data = $(form).serialize(); $.ajax({ type: 'POST', url: 'pBuscaGenerica.php', data: data, dataType: 'html', success: function(response) { window.location.replace("outra_pag.php"); // EXIBINDO O RETORNO DAS INFORMAÇÕES $("#msgRamais").html(response); // RESETANDO A FUNÇÃO _toggle(); }, error: function(xhr, ajaxOptions, thrownError) { console.log(xhr, ajaxOptions, thrownError); $("#msgRamais").html('×ATENÇÃO! Ocorreu um erro ao tentar obter o ramal. Contate o suporte técnico.'); } }); return false; } }); });
I need to redirect to a certain div
, I will not post the attempts because they were unproductive and would not add anything to the post.