...

View Full Version : Embeding Websites Within Web pages



Mike Collins
12-15-2006, 12:04 PM
Hello

My name is Mike,

Can anyone plesae tell me how to embed websites within web pages?

Please see the link below for an example

The code on this site does not work :(

http://www.web-source.net/embedding_web_pages.htm



If you can get it to work please let me know!

I am trying to embed a few websites within the webpages on my website: www.powerizerz.com

Help would be greatly appreciated!

Thank You

Vin0rz
12-15-2006, 02:46 PM
http://www.w3schools.com/tags/tag_iframe.asp

ahallicks
12-15-2006, 04:30 PM
I noticed that the <object data=url> had no quotation marks around the url, try adding those in and see what you get. Must admit I've never tried embedding a page into a page before. Interesting idea. I have used the object to embed 'videos' into a webpage that validtes to HTML Strict, but... hmmm..

I'd like to know how to do this without iFrames if at all possible because iFrame aren't validated anymore... so you'd need to use the object but in the example something else must be used because nothing will display on my pages??

croatiankid
12-15-2006, 05:39 PM
I noticed that the <object data=url> had no quotation marks around the url, try adding those in and see what you get.
I noticed it too, but when I viewed the page's code, I saw that it also had no quotes, so if it worked on that page, why wouldn't it work in other pages

Mike Collins
12-16-2006, 11:54 AM
Hey, thank you for the help

Would you happen to know by any chance how to place a link over the Iframe?

For example, when you click on the links inside the Iframe on this page

http://www.web-source.net/embedding_web_pages.htm

it opens the links inside the Iframe,

I desire to have it open the link inside the web-browser bar, so that it fills the whole page, and not just the Iframe,

much like when you click on a pop-up and to fills your search bar and takes you to a new web page.

Any suggestions?

Arbitrator
12-16-2006, 04:03 PM
The code on this site does not work :(You should declare the documentís media type to tell the browser that the object is an HTML file (of type text/html). Declaring the width and height are not optional either; you will see nothing if you donít specify them.

<object width="800" height="600" type="text/html" data="document.html"></object>

Note that Internet Explorer generally does not handle object elements correctly, instead utilizing them in a way inconsistent with the HTML 4.01 specification, causing browser inter‐compatibility problems. I tested this some time back though and I believe the object element works correctly in IE in this case.

Addressing the syntax issue, quotation marks should always be used for consistency. Some attribute values will let you get away without using them (in HTML) while others will not; however, attributes will accept all values with them, so to save yourself the headache of differentiating between which do and do not require the quotation marks, always use them. If you decide not to use them, it can be especially confusing when you change the value to a value that does require them and something doesnít work. Additionally, XHTML and other XML‐based languages require them, so if you use them when coding in HTML and later decide to move on to XHTML or some other XML‐based language, youíll already have that part down.


I desire to have it open the link inside the web-browser bar, so that it fills the whole page, and not just the IframeÖI canít say that I know what this ďweb-browser barĒ that you refer to is. If youíre asking how to make a document accessed via a hyperlink in a framed document take over the whole window though, then you would use target="_top" on the hyperlink. Thus: <a target="_top" href="destination">descriptive text</a>.

Mike Collins
12-17-2006, 08:46 PM
Hello

Thanks for you help, perhaps this code will give you an Idea of what exactly I am trying to do

<a target="_top" iframe src="http://www.ebay.com" height="400" width="300"> </iframe> </a>

I would like the website which is within the Iframe to open up a full web browser page when you click over any portion of the Iframe.

I understand you sent me a link text, I want this to work in the exact same way as when you clikc on a "text" link , but in this case the "text" is the Iframe window on the page.

Mike Collins
12-17-2006, 08:49 PM
Do you know how to create such a linking technique? I thought maybe placing a transparent image over the Iframe so that when you try to clikc on anythin in the Iframe you are actually clicking on the transparent image and you will be take to the website the transparent image is linked to as I know how to do this, but perhaps you can divise a better technique?

Please let me know, your help has been greatly appreciated.
Thank You

Arbitrator
12-17-2006, 10:17 PM
So far as I know, you canít affect a framed document in that way without editing the document itself. You might try using a base element (http://www.w3.org/TR/html4/struct/links.html#h-12.4) to set a base target and hope it affects the iframed document, but I havenít tested it. There might also be a way to catch the event destination when clicking within the frame's borders via JavaScript; for example, you might be able to do something to detect when the document inside the iframe has changed, retrieve the location of the new document, and then forward the main page to that location. As for actually testing that, Iím not going to take the time; Iím of the ideology that you shouldnít mess with the userís windowing controls unless you have a very good reason since the user can control such functions themselves.

ahallicks
12-18-2006, 02:24 PM
<object width="800" height="600" type="text/html" data="document.html"></object>

Note that Internet Explorer generally does not handle object elements correctly, instead utilizing them in a way inconsistent with the HTML 4.01 specification, causing browser inter‐compatibility problems. I tested this some time back though and I believe the object element works correctly in IE in this case.

Hmmm... I'm just testing this out and the text/html allows the web page to be viewed in FF but I cannot see anything except a border around where the web page should display?? I use the object tool to place videos on my site and have to insert some param tags between the objects to get the video to load in IE. Just to note I have IE 6 here... any ideas?

Arbitrator
12-18-2006, 09:42 PM
I'm just testing this out and the text/html allows the web page to be viewed in FF but I cannot see anything except a border around where the web page should display??Hereís an example (http://jsg.byethost4.com/demos/CF103060.html) that works for me in Firefox 2, Internet Explorer 6/7, and Opera 9.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum