resize iframe nested in a page
-
Hi, I currently have an iframe sat on a classin asp page, this iframe then displays my aspx pages as we are in the process of migration to .net framework. Currently in the classic asp page I have a javascript function that is called using the iframe onload function, this resizes the iframe according to the size of the content loaded in. It works a treat. However my issue is how can I call that function again from within in my aspx page, say if the page grows dynamically (i.e. options or validation messages are added). Currently the content gets pushed out the iframe, so I would need to call the resize function again. Any ideas would be greatly appreciated. Regards Paul Custance
-
Hi, I currently have an iframe sat on a classin asp page, this iframe then displays my aspx pages as we are in the process of migration to .net framework. Currently in the classic asp page I have a javascript function that is called using the iframe onload function, this resizes the iframe according to the size of the content loaded in. It works a treat. However my issue is how can I call that function again from within in my aspx page, say if the page grows dynamically (i.e. options or validation messages are added). Currently the content gets pushed out the iframe, so I would need to call the resize function again. Any ideas would be greatly appreciated. Regards Paul Custance
Ok I answered my own question, but for those who would like to know the solution: I called the function by "parent.parent.resize('iFrameId')" The parent.parent called the function in my classic asp page that holds the iframe. I then added the call to the OnResize event of the html tag on my aspx page. Hope that helps Paul C