Forum Moderators: open

Message Too Old, No Replies

Unable to Dynamically Resize IFrame

I'm trying to place an ASP.NET inside an SHTML page using an iframe

         

joyacheri

2:28 am on Apr 14, 2009 (gmt 0)

10+ Year Member



Hi,

By now I know that this is a tricky issue but it appears some people have had success and I've tried 6 or 7 different scripts and methods out there to no avail.

I have an shtml page with an iframe in it that points to an asp.net page on the same domain, just on a different server.
The asp.net page is a form and I have to use an iframe because the structure of the web page is determined by tables and you can't have regular frames inside a table.

Here is what I have right now:

<div id="text">
<table width="600" cellpadding="0" cellspacing="0" ID="Table3">
<tr>
<td width="25"></td>
<td colspan=3 align="right" valign="top">
<iframe src="..Input_Opportunities.aspx" scrolling=no frameborder=no width=575px height=600px></iframe>
</td> </tr></table></div>

Which is nested inside a couple more divs and tables.

Whenever I try the various javascripts out there, either the page doesn't show up at all or it's truncated. I've tried this idea among others:

[webmasterworld.com...]

I'm stumped. I'm wondering if all the tables, divs, include files are causing me trouble or if asp.net doesn't play nice?

Any suggestions would be greatly appreciated.

Thank you!

Joy

[edited by: tedster at 4:51 am (utc) on April 14, 2009]

encyclo

10:26 am on Apr 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



width=575px height=600px

Welcome to WebmasterWorld joyacheri. :) I'm not sure that it will solve your problem, but the above appears to be invalid HTML - you should be using

width="575" height="600"
instead.

You should try running the page through the HTML validator [validator.w3.org] first to iron out any bugs caused by invalid markup.

joyacheri

1:37 pm on Apr 14, 2009 (gmt 0)

10+ Year Member



Hi,

Thanks for the response but I should have explained that the above code is the ONLY way I can get the page to show up properly at the moment. I can probably remove the "px" with no problem but as of right now, it works with that code.

I would like to figure out how to make the height especially dynamic since this can vary - any suggestions?

Thanks!