Click to See Complete Forum and Search --> : piping another site into a table


Digiman
05-23-2003, 09:08 AM
I have a javascript that I have modified to allow text to change in a table when you click a link. Here it is.


This is the script in my <HEAD>:
<script type="text/javascript">
<!--
var ie = document.all;
var dom = document.getElementById;



function writeInfo(elem, theInfo)
{

document.all[elem].innerHTML = theInfo;

}

// -->
</script>

This is the link:
<a href="index.php" onClick="writeInfo('myData', 'This is where I want to pipe in a different page (ie. http://www.yahoo.com) instead of text.'); return false;">Target Test</a>


This is the target:
<td width=\"100%\" valign=\"top\" bgcolor=\"#FFFFFF\" id=\"myData\">Targeted Table</td>

What I am trying to do is pipe in another page from another server into this table. Is this possible?

Thank you,
Digiman

Charles
05-23-2003, 09:11 AM
1) Do not use the TABLE element for layout.

2) Do not rely on JavaScript.

3) Do use the IFRAME element. (http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME).

Digiman
05-23-2003, 09:14 AM
Originally posted by Charles
Do use the IFRAME element. (http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME).


I do not want to use frames. Is this possible using Tables?

Thank you,
Digiman

Charles
05-23-2003, 09:17 AM
1) Do not use the TABLE element for layout.

2) Do not rely on JavaScript.

3) Do use the IFRAME element. (http://www.w3.org/TR/html4/present/...tml#edef-IFRAME).

Digiman
05-23-2003, 09:21 AM
1) Do not use the TABLE element for layout.

2) Do not rely on JavaScript.

3) Do use the IFRAME element. (http://www.w3.org/TR/html4/present/...tml#edef-IFRAME).

I heard you the first time goober.
I do NOT want to use frames.
I want to know if it is possible to do what I am explaining in my first post is possible.

If you can NOT help, do NOT post.


Thank you,
Digiman

Vladdy
05-23-2003, 09:28 AM
Coming in and insulting on of the most respected forum regulars is a sure way to get help... :rolleyes:

Charles
05-23-2003, 09:28 AM
Originally posted by Digiman
I heard you the first time goober.
I do NOT want to use frames.
I want to know if it is possible to do what I am explaining in my first post is possible.

If you can NOT help, do NOT post.


Thank you,
Digiman I never suggested that you use frames, the IFRAME element for for an inline frame, which is what you must use to incorporate one HTML document into another. If you did manage to do it another way (using SSI and the LWP Perl module, say) then what you would end up with isn't HTML. You would have a HEAD and a BODY element inside of a BODY element. You could also use the OBJECT element for inline frames, but that isn't so well supported.

And if you aren't going to listen to your betters, then why did you post your question in the first place?

Digiman
05-23-2003, 09:34 AM
Sorry, didn't mean to insult anyone. But your post was vague. And I don't like frames. Unfortunately, my ignorance of IFrames thought that I had to use frames to use the IFrame element. I will look into the IFrame element.

Thank you,
Digiman

Digiman
05-23-2003, 10:00 AM
The IFRAME element worked wonderfully other than the scrollbars, but I can turn that off.

Thanks again Charles,
Digiman