Embed External Div

JackT06

macrumors 6502
Original poster
Jul 24, 2009
293
0
Hello,

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

Thanks,
Jack
 

bpaluzzi

macrumors 6502a
Sep 2, 2010
919
1
London
An iframe would be the closest thing that I can think of for doing this.
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.