I am trying to fetch data using the jquery ajax library and I want to add the returned html data to a frame object (without setting the source attribute). The general idea is that I want to showcase the html content as a seperate document in a frame. I tried putting the data into a div but this had the effect of affecting the main document. Thanks!
The frame is:
<frame id="test">
</frame>
$.ajax({ url : url })
.done(function(html) { document.getElementById('test').innerHTML = html });
The problem seems to be that the getElementById function is return Null. This problem is resolved if I change the frame to a div.