Forum Moderators: open

Message Too Old, No Replies

Embedding pages with <embed>.

         

synotic

4:36 am on Mar 10, 2006 (gmt 0)

10+ Year Member



Hi. I'm working in a limited environment right now which restricts object tags, iframes, ssi, and any form of scripting. I'd like to include some outside pages on the site. With Safari, I can simply do the following:

<embed src="http://www.google.com" />

which appears in a little viewport on the page, which I can style accordingly. On Firefox, however, the page doesn't show at all. If I try to embed an image, or some other object, however; it does work. Is it possible to have Firefox include a website, just using the embed tag? Thanks :)

Also, does anyone know if this technique works with MSIE 5/6?

encyclo

1:27 am on Mar 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This method won't work in Firefox and I'm not too sure how it will work in IE - but as it is an entirely non-standard way of including pages it is always going to hit and miss.

You need really to address the heart of your problem. Why is the environment so limited? Is it an application which needs to be fixed, or is it that you are not permitted (by a terms of service as well as by technical restrictions) to use iframes etc. on the site. If it is the latter, then using embed would be just bypassing the rules and you are likely to get caught sooner or later. Whatever the reasons, I can't recommend using this method.