Should I use Divs or an iframe?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnnycoma
    New Member
    • Mar 2008
    • 1

    Should I use Divs or an iframe?

    I'll get to the meat and potatoes. I'm building a resume page using divs, and I want to refrain from using iframes.

    Is there a way that I can load new information into a div element with the click of a link on my page?

    If this is possible, do I need to use Javascript or is there some XHTML tag I can use? I tried adding a target element to the link, but I don't know how to tell the browser to only load into the div.

    If it is not possible, I'm assuming I will have to use an iframe - is an iframe element considered a tacky part of modern design (been out of the web design game, I remember using iframes and don't really know if they've remained useful elements or not :P)?

    thanks in advance! feel free to just link me to a w3 page if you don't feel like giving a long answer. it's entirely possible I've missed something in the tutorials..
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    The problem with frames is they aren't easy to bookmark and styling can be a pain, as well as something else I'm to tired to think of right now. To load what you want in a div would require javascript.

    Comment

    • just a feeling
      New Member
      • Aug 2007
      • 86

      #3
      I don't use frames at all. As much as I like some of the features they offer, there is still a number of disadvantages. For more info, google for " Frames disadvantages".
      Originally posted by johnnycoma
      Is there a way that I can load new information into a div element with the click of a link on my page?
      As pointed out by drhowarddrfine, It requires javascript, but I believe that CSS PLAY can do that too.

      Best Regards,

      Comment

      Working...