jquery ajax - resize of iframe of another page

Prighinny

New Member
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="http://stackoverflow.com/questions/15720921/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:\[code\] <script> $(document).ready(function() { $.ajax({ url: 'installation.html', type: 'get', success: function(data) { $(data).find('#MyIframe').height('1000px'); }, }); }); </script>\[/code\]But it doesn't work. Can you suggest a solution here? Thank you.
 
Back
Top