PDA

View Full Version : Embedded problem, please help!


notsogood
12-11-2006, 10:44 AM
Hello All

First of all, thank you for reading this! I have this problem that i can not
solve with my skill level. I have two pages one is firstpage.htm and the second
one is window.htm. Now the problem is that i need to display the content of
window.htm in the firstpage.htm in embedded window. The window.htm contains
just some written text that is displayed on 4500 pages that have the javascript.
The text changes weekly and i would not like to change all the 4500 pages. So
just by editing this one htm file, i could solve the problem and it would change
on all these pages. I tought i can use javascript in this. I hope someone could
give me the code to do this, i don't know anything about javascript so i would
need the entire code for this. If someone could help me i would be very, very
happy.

Thank You!

Mr. NotSoGood

BonRouge
12-11-2006, 10:50 AM
It sounds like you might want to use php includes. (http://bonrouge.com/br.php?page=faq#includes)

notsogood
12-11-2006, 11:15 AM
No php what so ever. I'm sorry but my pages must be php free.
Those who don't have J. enabled, will be missing the content, but
people without J. enabled are simply not welcome and can not
view anything on my pages. So that is not a problem.

coothead
12-11-2006, 11:35 AM
Hi there notsogood,

if php is not an option, have you considered using an iframe?

notsogood
12-11-2006, 12:08 PM
IFrame sollution is ok, if someone knows how to make one.

coothead
12-11-2006, 02:55 PM
Hi there notsogood,

here is a basic example of an iframe...

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
body {
background-color:#999;
color:#000;
}
#ifr_container {
width:500px;
height:400px;
border:1px solid #000;
}
#ifr_container iframe {
width:100%;
height:100%;
border:0 solid;
}
</style>

</head>
<body>

<div id="ifr_container">
<iframe src="http://wwww.google.com/" frameborder="0"></iframe>
</div>

</body>
</html>