Web page embedded in another web page using Object Tag not working in IE 7
I'm trying to learn some CSS and HTML by modifying a free template (XHTML 1.0 Transitional)
I'm trying to display a web page within another web page using the "object" tag. The only reason I need to do this is because I can't install a server side CMS because of restrictions at my school. I'm updating the main page by editing an MS Word document that I can save as HTML directly to the server, and then have it display within the main template page. If I had a better way to easily edit the content I would use it.
The code works in Firefox 3.011 but not in IE 7. When opened with IE from my hard drive, a scroll bar appears on the right side of the inserted webpage, even though the page doesn't need to be scrolled.
I uploaded the files to a GoDaddy server and the inserted page doesn't display at all in IE7 but Firefox still displays it.
I'm also having trouble getting the HTML and CSS code to validate with the "object" in the page.
Would I be better of using an iframe? If I do, will the XHTML template still validate?
I know there are still a lot of problems with the code but I'm taking things one step at a time
Link: http://www.searchforknowledge.com/JMS29/index.html
Does anyone have any advice?
Thanks,
DLH
Abhishek Reddy posted this at 17:20 — 27th June 2009.
He has: 3,348 posts
Joined: Jul 2001
Yours sounds like a good use case for a static website compiler such as nanoc.
You can define a template with a placeholder for your page-specific content, and have the compiler automatically combine your input to produce plain HTML files. The compiler need only run once on a computer of your choice, to yield files that your web server should be able to serve without supporting anything special. You would repeat the compilation for every update, however.
Additionally, using Word to produce HTML instantly rings alarm bells. People resort to cleaners to get rid of the smell, so you would be ill-advised to publish directly from it. If you're interested in nanoc, you might consider simply using Markdown for your content.
Good luck.
hundy posted this at 18:26 — 27th June 2009.
They have: 5 posts
Joined: Jun 2009
I'll check this out. Thanks
greg posted this at 17:28 — 27th June 2009.
He has: 1,581 posts
Joined: Nov 2005
Welcome to TWF
...I uploaded the files to a GoDaddy server
hundy posted this at 18:26 — 27th June 2009.
They have: 5 posts
Joined: Jun 2009
I'm a teacher and the school system wants us to host our files on their servers. I'm using the GoDaddy space for other purposes.
The server at my school is set up as a network drive that we can save files to. They don't allow FTP. They call it the "MySchool" drive. I don't know if this is a commercial product or just something they set up.
Thanks
webwiz posted this at 04:31 — 28th June 2009.
He has: 629 posts
Joined: May 2007
With a transitional DOCTYPE an iframe will validate okay. As an iframe can get its source from anywhere, this is likely your best bet.
The support for the OBJECT element in older IE is flaky at best.
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
hundy posted this at 14:59 — 28th June 2009.
They have: 5 posts
Joined: Jun 2009
I may have to abandoned the idea of embedding the page with the content. I'm surprised it's so difficult to do something that seems so basic. I'm trying out some WYSIWYG web editors to make the simple content changes I need. That my work better than trying to embed the content page.
Thanks for your advice.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.