I am just beginner with ajax and jquery but I am trying to achieve this:
- Page installation.html contains iframe with id="MyIframe" and src="step1.php"
- Page step1.php contains button that calls step2.php using ajax (successfully)
- Page step2.php need to has script, that will resize iframe of page installation.html (so the content of step2 will fit in)
So far , my script looks like this:
<script>
$(document).ready(function() {
$.ajax({
url: 'installation.html',
type: 'get',
success: function(data) {
$(data).find('#MyIframe').height('1000px');
},
});
});
</script>
But it doesn't work. Can you suggest a solution here? Thank you.