Given you can't access the server were the forum is stored, the only thing you
can do is wait for your hidden frame to load and then copy its HTML ( via
document.innerHTML ) to your DynLAyer. If that content has images and is in
another server, be sure to add a <base href .. tag to your content to the image
loading in your layer is redirected to the server where the guestbook lives.
This trick ( as many other innerHTML related ) will only work in IE, because NS
has no way of reading its HTMl contents.
Colin Thompson wrote:
> Ok, I've posted to the list before, so you probably know I'm new at this,
> but this time I really need some help...
>
> I'm trying to set up a DynAPI powered homepage for a friend, who has one of
> those free guestbooks already, so I have no control of the guestbook
> script... and no server side support on the site he's using so can't make my
> own....
>
> I have a DynLayer set up at the moment with a 'sign the guestbook' form. and
> a loadlayer that I'm using to display different pages on his site etc...
>
> what is the easiest way for me to submit the form and have the results load
> into the loadlayer - instead of just replacing the page?
>
> I know I could use a hidden frame or IFrame to receive the page back from
> the server, but how do I then get that page to appear in the loadlayer?
>
> I've looked at some of the examples on Richard's site, but none of them seem
> to cover this kind of thing, they all use server side scripts that are
> created to work in this way.. is it even possible to just grab a page from
> another domain and show it inside a layer?
>
> Could somebody show me some example code or something? anything???
>
> Thanks for any help.
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help