Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Embeding Websites Within Web pages

    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

  • #2
    Regular Coder
    Join Date
    Feb 2006
    Location
    The Netherlands
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah that.

  • #3
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    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??
    Last edited by ahallicks; 12-15-2006 at 04:44 PM. Reason: Oh, and....
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #4
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by ahallicks View Post
    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

  • #5
    New Coder
    Join Date
    Dec 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 Posts
    Quote Originally Posted by Mike Collins View Post
    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.

    Quote Originally Posted by Mike Collins View Post
    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>.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #7
    New Coder
    Join Date
    Dec 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #8
    New Coder
    Join Date
    Dec 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #9
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 Posts
    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 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.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #10
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Quote Originally Posted by Arbitrator View Post
    <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?
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #11
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,302
    Thanks
    28
    Thanked 276 Times in 270 Posts
    Quote Originally Posted by ahallicks View Post
    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 that works for me in Firefox 2, Internet Explorer 6/7, and Opera 9.
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •