Lleoun
06-14-2010, 10:01 AM
Hi all,
I want to show a webpage inside of my page. I'd be using an iframe but it has to validate w3c XHTML 1.0 Strict and wai. So I go for object instead.
The code has to work in all modern browsers including Internet Explorer 6, 7, and 8.
And here are my tries:
Please have a look to the chunks of code below. Each is a version of code to make object work.
Using Firefox and Safari:
OFFLINE:
#1 works
#2 woks
# 3 dont work, shows: "The object can't be rendered"
#4 works
ONLINE: the same as when offline.
Using Internet Explorer:
OFFLINE (----after accepting the alert to show blocked content----):
all the versions of code work!
ONLINE:
None of the versions work!! It shows something like an empty iframe, a blank with no active scrollbars around.
And here's the problem, I need a version of the code to work online and in all browsers.
Please give me a hand here, I have to show this working very soon and I don't have a clue on what is happening.
Thanks a lot
<!-- #1 -->
<object codebase="http://www.google.com" type="text/html" data="http://www.google.com" style="width:526px;height:447px" standby="Information">
<img src="http://3dshaders.com/shaders/Earth-1tex.jpg" alt="the earth" longdesc="earth.html" />
</object>
</div>
<!-- #2 -->
<object classid="http://www.google.com" codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
<object codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
alt : <a href="apage.html">more information</a>
</object>
</object>
<!-- #3 -->
<object data="http://www.yahoo.es" classid="clsid:235336920-03F9-11CF-8FD0-00AA00686F13" type="text/html" id="editorWindow" style="width:30em;height:10em;">
<p>Sorry. The object can't be rendered .</p>
</object>
<!-- #4 -->
<object classid="clsid:235336920-03F9-11CF-8FD0-00AA00686F13" codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
<object codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
alt : <a href="apage.html">more information</a>
</object>
</object>
I want to show a webpage inside of my page. I'd be using an iframe but it has to validate w3c XHTML 1.0 Strict and wai. So I go for object instead.
The code has to work in all modern browsers including Internet Explorer 6, 7, and 8.
And here are my tries:
Please have a look to the chunks of code below. Each is a version of code to make object work.
Using Firefox and Safari:
OFFLINE:
#1 works
#2 woks
# 3 dont work, shows: "The object can't be rendered"
#4 works
ONLINE: the same as when offline.
Using Internet Explorer:
OFFLINE (----after accepting the alert to show blocked content----):
all the versions of code work!
ONLINE:
None of the versions work!! It shows something like an empty iframe, a blank with no active scrollbars around.
And here's the problem, I need a version of the code to work online and in all browsers.
Please give me a hand here, I have to show this working very soon and I don't have a clue on what is happening.
Thanks a lot
<!-- #1 -->
<object codebase="http://www.google.com" type="text/html" data="http://www.google.com" style="width:526px;height:447px" standby="Information">
<img src="http://3dshaders.com/shaders/Earth-1tex.jpg" alt="the earth" longdesc="earth.html" />
</object>
</div>
<!-- #2 -->
<object classid="http://www.google.com" codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
<object codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
alt : <a href="apage.html">more information</a>
</object>
</object>
<!-- #3 -->
<object data="http://www.yahoo.es" classid="clsid:235336920-03F9-11CF-8FD0-00AA00686F13" type="text/html" id="editorWindow" style="width:30em;height:10em;">
<p>Sorry. The object can't be rendered .</p>
</object>
<!-- #4 -->
<object classid="clsid:235336920-03F9-11CF-8FD0-00AA00686F13" codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
<object codebase="http://www.google.com" data="http://www.google.com" type="text/html" style="width:516px;height:437px" >
alt : <a href="apage.html">more information</a>
</object>
</object>