Click to See Complete Forum and Search --> : Can we bring IFrames into one HTML instead of multiple HTML?


dinagar
08-09-2003, 12:34 AM
Hi All

I have created a table using IFrame. I have created four seperate HTML and combined into one for seeing a full table. But, i want these seperate HTML mingled and construct a table view with using IFrame. I know it would sound silly, but as i am new to this JavaScript and would like to know the feasibility.

With Regards,
V.Dinagar :confused:

Zero-x252
08-09-2003, 04:26 AM
Do you mean something like this?:

<table width="100%" height="100%">
<tr>
<td><iframe src="doc1.html"></iframe></td>
<td><iframe src="doc2.html"></iframe></td>
</tr>
<tr>
<td><iframe src="doc3.html"></iframe></td>
<td><iframe src="doc4.html"></iframe></td>
</tr>
</table>
cause that is all HTML but if you mean a table that brings the selected document forward then i would have to work on it...

Zero-x252
08-09-2003, 04:32 AM
Ok wait i see what your saying [forget the above statement...]
<iframe src="doc1.*"></iframe><iframe src="doc2.*"></iframe
<br>
<iframe src="doc3.*"></iframe><iframe src="doc4.*"></iframe
[the * represents extension(gif jpg html etc...)]
now you would use CSS to make it like a table:
<style type="text/css">
iframe {border: thin inset #000000}

dinagar
08-09-2003, 05:23 AM
Hi,
Thanks for the response. I should be clear about my doubt. Here is my code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0062)http://www.massless.org/_tests/Grid1/default.asp?s=1&r=40&c=40 -->
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">

<SCRIPT language="Javascript" type="text/javascript" src="IFrameScrolling.js"></SCRIPT>

<META content="MSHTML 6.00.2469.2" name=GENERATOR>
</HEAD>

<BODY onload="initFrameSynchronization();">
<TABLE id=itable cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>
<IFRAME id=PGTLF name=PGTLF marginWidth=0 marginHeight=0
src="colsleft.htm" frameBorder=0 width=45
scrolling=no height=40></IFRAME>
<IFRAME id=PGCLF name=PGCLF
marginWidth=0 marginHeight=0 src="rows.htm"
frameBorder=0 width=45 scrolling=no
height=297>
</IFRAME>
</TD>
</TR>
</TBODY>
</TABLE>
</TD>
<TD width="100%">
<IFRAME id=PGTRF name=PGTRF marginWidth=0
marginHeight=0 src="colsright.htm" frameBorder=0
width=550 scrolling=no height=40>
</IFRAME>
<IFRAME id=PGCRF
name=PGCRF marginWidth=0 marginHeight=0 src="iframe.htm"
frameBorder=0 width=575 height=297></IFRAME>
</TD>
</TR>
</TBODY>
</TABLE>
</BODY>
</HTML>

Where ever you find the html, i.e SRC="xx.html" that should be replace by table content. I should not call the HTML content from out side. But it should be lying inside the same HTML i am using.

For Example,

<IFRAME id=PGTRF name=PGTRF marginWidth=0
marginHeight=0 frameBorder=0
width=550 scrolling=no height=40>


<table id=PGTRF>
<tr><td>content</td></tr>
</table>
</IFRAME>
I know this takes long time break this barrier. But i have to work it out.