Previous Message
Next Message

Displaying external page in a div

Sent by John Mandia on 15 June 2006 16:04


Hi Guys,

Thanks for the suggestions.

Let me clarify the idea a bit:

Environment of target page : .Net, IIS, ASP.Net
Consuming page: Undetermined (Could be JSP).

The idea is that I have an ssl page. I want someone to be able to display
this page within their own page not using frames or an iframe.

The content could be dynamic so that would prevent a simply screen scrape (
e.g. lets say it had a dynamic form).

Personnally I don't think it can be done (i.e. having something similar to
an iframe without using an iframe or a frame) but I'd liked to be proved
wrong. The reasons I've been told for not using an iframe is accessibility.

So something similar to an include but it is an external url. an example
could be when you source an image from a dynamic url.

Thanks,

John






On 6/15/06, Tom Anthony [EMAIL-REMOVED]> wrote:
>
> 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-REMOVED]]
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/
Previous Message
Next Message

Message thread: