Forum Moderators: open

Message Too Old, No Replies

IFrame problem on IE

When I access a page from my app that has an IFrame appears me a blank page

         

martosoler

2:06 pm on Sep 24, 2005 (gmt 0)

10+ Year Member



This is the structure of the page ...

<html>
<body onLoad="showObj('definitionButton')">
<form action="main.jsp" method="post">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="height: 105;">
<c:import url="headerResult.jsp"/>
</td>
</tr>
<tr>
<td height="100%" valign="top" align="left">
<iframe id="table" name="porfi" scrolling="auto" name="table" marginwidth="20" style="width: 100%; height: 100%; border: 0px;" src="table.jsp">
Browser not support IFrames
</iframe>
</td>
</tr>
</form>
<tr>
<td style="height: 115;"><c:import url="footer.html"/></td>
</tr>
</table>
</body>
</html>

When i put on my URL ... [localhost:8080...] ... appears a blank page showing nothing .. żż?
Another thing to ask is if I could overlapp the tags ... see the form tag starts before the table tag and end's before ...
Thanks

tedster

4:17 pm on Sep 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, your form tag is not propely nested and that could cause improper rendering of your mark-up on some browsers. You have:

<form>
<table>
<tr><td></td></tr>
</form>
<tr><td></td></tr>
</table>

But if the form element is opened before the table element, then you must first close </table> before you close </form>

<form>
<table>
<tr><td></td></tr>
<tr><td></td></tr>
</table>
</form>

or possibly better, nest the form inside a cell:


<table>
<tr><td></td></tr>
<tr><td><form></form></td></tr>
</table>