Open a new window "inside" the current window

Asked

Viewed 121 times

0

I have a page where I insert some data and click on Ubmit, a query is made in the database and returns me a . xml in another window. Well, I wonder if it is possible, to put a field in the current window, so that this return in . xml appears in it? It is currently as in the attached photo.inserir a descrição da imagem aqui

  • You would have to use AJAX, but you have to see if the requested page accepts CORS.

1 answer

0

You can use jquery for this so that your answer is placed inside some div for example

HTML:

<div id='conteudo'> </div>

Javascript:

$('#centeudo').append(<div>SEU CONTEUDO CAPTURADO DO HTML AQUI</div>);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.