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 8 of 8
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts

    what tag does replace Iframe today?

    is there a technique that replaces Iframes? or are Iframes still correct to use and not deprecated.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The iframe element is deprecated when using a Strict DOCTYPE. There really is no reason to iframes unless you need a page constantly refreshing but if you are wanting to use an iframe because you don't want to have to edit your navigation on every page then there are better ways to do things.

    You could use an object element to replace the iframe but compatibility issues will arise.

    So I guess the question would be, why exactly do you want to use an iframe?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    well i exactly dont know, so if i dont use an Iframe in a web page where i need to view several JPGS i would have to repeat the complete code of the pages in those web pages that includes JPGS (i would have to repeat the header and footer)?

  • #4
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    here is an example: http://www.mynews.cl/

    this person used iframe to navigate among all is JPGS, how could i do the same web pages but without Iframe?

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Something I've been really fond of and I think looks a lot neater is Lightbox.

    Click on the example images.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    sybil6 (09-14-2007)

  • #6
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    If all you want is a sliding box like an iframe then use divs with overflow set to auto.
    You can not say you know how to do something, until you can teach it to someone else.

  • #7
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    no i dont want sliding box , just clicking one time then you get to the next image

  • #8
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,517
    Thanks
    114
    Thanked 110 Times in 109 Posts
    Hmm so you click the image and it displays the next image?

    You could use an image swap function with JS
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Posting Permissions

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