On 15 Jun 2006, at 15:11, John Mandia wrote: > Hi all, > > Is it at all possible to display a page within a page (i.e. not > using frames > or iframe). > > i.e. the ability to set the source of a div to an external url. > > Anyone ever tried or achieved anything like this? > > Thanks, > > John
Depending on your needs, there are various ways you could do this. There are a couple of Javascript approaches, or if you are using a server side language, such as PHP, then there are easier alternatives to it. You could also use Apaches Server Side Includes to do this. Javascript wise you could use an AJAX based approach to fetch the file and use innerHTML or suchlike to populate your div. With PHP, or similar, you could just read the file into a buffer and echo/print it at the appropriate point. With Apache SSI you would just include a special include tag in your HTML code, and Apache would fetch the file and insert it whenever the page is requested (and serve it as one page, the user wouldn't know about the SSI). I hope that helps put you in the right direction. Feel free to email me directly if you want some more help with this, and I'll do my best. :) -Tom ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/