Embed External Div

Discussion in 'Web Design and Development' started by JackT06, Jul 24, 2011.

  1. JackT06 macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #1
    Hello,

    Is it possible for me to embed to my website a div from another website?

    Thanks,
    Jack
     
  2. designguy79 macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Michigan
    #2
    An iframe would be the closest thing that I can think of for doing this.
     
  3. bpaluzzi macrumors 6502a

    bpaluzzi

    Joined:
    Sep 2, 2010
    Location:
    London
    #3
    An iFrame would be the only way to do that, and that would only allow for loading of a full site, not just a specific div.

    There are ways to use javascript to load a specific div from one page onto another (jQuery's ".load" function is probably the easiest), but Ajax's security policies only allow this to be done from pages on the same domain.
     

Share This Page