www.webdeveloper.com
Results 1 to 4 of 4

Thread: does anyone know how facebook and digg displays external pages?

  1. #1
    Join Date
    Apr 2009
    Posts
    1

    does anyone know how facebook and digg displays external pages?

    example, take notice of the digg bar fixed positionally at the top. are they using iFrames?
    http://digg.com/d1oA2o

    if they are, is this really the most elegant way to display external pages? Is there a known work around to frame busters?
    Last edited by allstealth; 04-08-2009 at 08:20 AM.

  2. #2
    Join Date
    Dec 2005
    Posts
    2,984
    Line 312 of the source code of the page you linked to:

    Code:
    <iframe id="diggiFrame" name="diggiFrame" noresize="noresize" src="http://www.independent.co.uk/opinion/commentators/johann-hari/the-dark-side-of-dubai-1664368.html" frameborder="0"></iframe>
    if they are, is this really the most elegant way to display external pages?
    How else do you propose to display external pages while keeping the user on your site?
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

  3. #3
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,114
    Frame Buster solutions thread:
    The action starts around post 21, 24

    http://www.codingforums.com/archive/...p/t-56076.html
    This is on my agenda... but is of low priority...

    There is another thread on this site looking for the same solution.
    If you figure it out, share it with us.
    http://www.webdeveloper.com/forum/sh...d.php?t=206515

    ------------------------------------------------------

    Frame busters break out of Digg.
    They seem to be using the jquery library and have a cool script that allows the entire external page to load in an iframe that works like a toolbar.

    I have an iframe that allows resizing, but scroll bars and the width of the target frame has always been a problem. Digg has a cool solution.


    Let us know if you figure out either of these issues.

  4. #4
    Join Date
    Jun 2008
    Location
    Europe
    Posts
    1,114
    Here is a solution that prevents frame busting:

    http://coderrr.wordpress.com/2009/02...ui-redressing/



    (Some keywords to help find this page in the future... I know I'll need it again someday and won't remember where it was... )
    framebuster, iframe locked in, break out of frames, prevent frame break out, stop frame busting.

    HTML Code:
    <script type="text/javascript">
        var prevent_bust = 0  
        window.onbeforeunload = function() { prevent_bust++ }  
        setInterval(function() {  
          if (prevent_bust > 0) {  
            prevent_bust -= 2  
            window.top.location = 'http://server-which-responds-with-204.com'  
          }  
        }, 1)  
    </script>
    Last edited by donatello; 04-09-2009 at 02:57 AM. Reason: Added keywords for bookmarking

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles