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 4 of 4
  1. #1
    Regular Coder cineweekly.com's Avatar
    Join Date
    Aug 2010
    Posts
    485
    Thanks
    14
    Thanked 3 Times in 3 Posts

    Best iframe alternative?

    I have a sortable table that I want to allow other sites to display (dynamically) on their site with a code snippet I provide. I could do this with iframes but everyone says they're outdated and no good. I know I could use a simple php include but it wouldn't work if the sites / blogs weren't parsing as php or using .php extensions. What other options do I have (the simpler the better)?

  • #2
    Regular Coder
    Join Date
    Sep 2011
    Posts
    341
    Thanks
    3
    Thanked 36 Times in 36 Posts
    Iframes are not outdated. They were re-included in HTML5. In this case, they also seem the best if not the only option.
    Frank

    How to: Target IE in, Position in, Center in, Create a Fixed ('Sticky') Footer with, and Create a Drop-Down/Fly-Out Menu with CSS: Website Laten Maken Amsterdam.

  • #3
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,341
    Thanks
    11
    Thanked 288 Times in 287 Posts
    You could also provide this table of information in XML format, and have the sites parse and format it as they desire. That might mitigate the potential issue for anyone who's not thrilled with your iframe code.

    Dave

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by Frankie View Post
    They were re-included in HTML5.
    re-included is the wrong word. HTML 5 is the first version of HTML to include the <iframe> tag in the standard as an alternative to the <object> tag that HTML 4 introduced for the same purpose.

    Prior to HTML 4 the <iframe> tag was a proprietary tag introduced by one browser and subsequently copied by other browsers. It had become popular enough by 1997 when HTML 4 became a standard for HTML 4 to include it in the list of obsolete tags that people should replace as they transitioned to HTML 4.
    Last edited by felgall; 01-22-2012 at 08:30 PM.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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