So I like to append data(JSON) I received from the server to new pop up window. I tried what other people already posted but none of them actually works.
$.ajax
({
url: "/receiveData",
type: "POST",
contentType: "application/json; charset=UTF-8",
data:myJSON,
dataType: "json",
success: handledata
});
so I have this ajax call and handle data
This is what i have on handledata function and I like to append this to specific id called "user" in open.html
var newin = window.open("open.html");
$(newin.document.body).ready(function() {
//$(newin.document.body).append("<tr>"+ "Hello"+ "<tr>")
newin.alert("hello");
});