@scotty_walker
To load an iframe in a div using AJAX, you can follow these steps:
1
|
<div id="iframeContainer"></div> |
1 2 3 4 5 6 7 8 9 10 11 12 |
function loadIframe(url) { $.ajax({ url: url, dataType: 'html', success: function(response) { $('#iframeContainer').html(response); }, error: function() { $('#iframeContainer').html('Error loading iframe content'); } }); } |
1
|
loadIframe('http://example.com/iframe.html'); |
With these steps, you should be able to load an iframe into a div using AJAX.