Results 1 to 8 of 8

Thread: Future-proof iframes

  1. #1
    Join Date
    Jan 2006
    Location
    Derbyshire, UK
    Posts
    74
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Future-proof iframes

    I'm sure I've read a comment in a post on here that iframes won't be supported in forthcoming browsers or have I dreamt it? If it's true what alternatives are recommended?

    Any comments appriciated.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    iframes are not THAT risky-- they will be here for a while at least, but perhaps start to be phased out in a couple years.

    There is no easy other way to do this.

    Here are some options:
    1. frames-- they're a bit "better" than iframes, though I'm not sure why-- but everyone seems to agree on this-- I guess it's that they're more predictable to work with, though give less control.

    2. AJAX-- the problem here is that there are security restrictions (for example, the page must be on the same domain), they are more complex to work with, and only supported by some browsers-- at the moment much less than iframes, though in 10 years that might be reversed-- but I wouldn't bet too much on that-- it's hard to predict what will happen.

    3. Using a server side method to include one page in other. Of all possibilities this is by far the best but can also get complex, though I believe it's worth it--- it functions on the server and thus doesn't matter what the user is browsing with-- it'll always work. This means you must have PHP, ASP, or CGI, etc. setup on your server, though there are many options. Most likely you'd be best looking into PHP if you're not sure.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    Burgin (03-19-2010)

  4. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    4. Flash. Just do everything in Flash. Full Screen without options to re-size.


    (sorry, just wanted to say that).
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. The Following User Says Thank You to BLiZZaRD For This Useful Post:

    Burgin (03-19-2010)

  6. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    But does that actually allow for outside content to be loaded?

    Of course using a plugin (including flash) is an option, but I'm not sure how easy/useful that would be if trying to load html into the page-- but it could create another way to approach the problem.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #5
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Sure it does. You can dynamically add content through PHP, JS, XML, TXT, SQL... almost anything really, even other Flash files.

    The down side to that argument (and I am not supporting a Flash only website, just stating it can and is being done) is if the end user has flash and/or JS disabled or off.

    But then again, if you have good content, people will want to see it. Look at pogo.com. They run a full flash site (for the most part) and I don't think their 1 - 2 million page hits per month are affected by those that have Flash disabled.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  8. #6
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    You can replace your iframe with a text/html object in all browsers, except in IE, Opera and Google Chrome, where you may encounter problems if you want to do with the object what you normally do with the iframe. By the time the iframe will be gone (in 2100, or later), the object will be something that behaves the same in all browsers. So don't worry.
    Arie Molendijk.
    ===

  9. #7
    Join Date
    Jan 2006
    Location
    Derbyshire, UK
    Posts
    74
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default

    Thanks everyone for sound advice!!

  10. #8
    Join Date
    Apr 2007
    Location
    Southwest France
    Posts
    29
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi Guys

    Just finished my site having to use an Iframe (not my code) Google maps,
    even worse I've a liquid site everything re-sizable images, Swf's. and had trouble with the G.map <iframe> but managed to do it.
    Now you tell me its on its way out

    Here's my page just in case you want to play.

    http://www.cps24.fr/map.html

    I've tested in IE & Firefox all OK

    any one fine any probs drop me a line please

Bookmarks

Posting Permissions

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