I can think of a couple issues with this method that would have to be solved
before it was robust.

1. The server (or the person authoring pages) would have to make sure there
were no text areas within the returned content, otherwise it would break the
textarea that the content was loading into. It is possible that any text
areas could be commented out and then uncommented by the client side script.

2. If there is the possibility of loading more than one document at the same
time then some kind of load handler/queue (ala loadpanel) would need to be
implemented.

LoadPanel is okayish, which reminds me, I have a version of LoadPanel that
works in NS6. It works pretty well, I could put it in CVS unless there are
any objections...

Cheers,

Cameron.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
> Pemberton
> Sent: 27 February 2001 00:39
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Dev] External loading trick - advanced -
>
>
> it just wraps the external file into form text area.
>
> it still requires that the page be loaded into an external frame.
>
> Doug Melvin wrote:
>
> > that sounds very interesting..
> > But I'm not clear on what you are doing?
> > Are youloading an external file into a textarea?
> > That would rock, as we can then stuff the contents of the page into a
> > size table in a layer... ect..
> >
> > ----- Original Message -----
> > From: "Jordi - IlMaestro - Ministral" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, February 26, 2001 5:33 AM
> > Subject: [Dynapi-Dev] External loading trick - advanced -
> >
> > > Here's something I came up with while working on the project
> that almost
> > killed
> > > me last week. I needed ( or wanted ) to load external
> contents inside of
> > my
> > > layers, but didn't want to use the loadpanel.
> > >
> > > My personal opinion is that the future of loading external
> contents does
> > not go
> > > through the loadpanel. Not because of the panel itself but
> because of the
> > very
> > > nature of the browsers and all the problems of synchronization that
> > involve.
> > > I'd like to use setHTMLs (with or without Java would be another
> > discussion).
> > >
> > > My main concern was to have an external page that could be browsed as
> > > standalone and yet loaded into a dynlayer. Even edited with
> dreamweaver.
> > Here's
> > > the solution. I thought I'd share.
> > >
> > > <script>
> > > if(parent.content.DynAPI)    // Insert your condition here
> > > {
> > > window.onload = function() {
> > >     parent.content.scroll.setHTML(document.form1.txt.value)
> > >     }
> > > document.write("<form name=form1><textarea name=txt>")
> > > }
> > > </script>
> > >
> > >
> > > This is the page
> > >
> > >
> > > <script>
> > > if(parent.content.DynAPI)    // Insert your condition here
> > > {
> > > document.write("</textarea></form>")
> > > }
> > > </script>
> > >
> > >
> > >
> > > ----
> > >
> > > This worked fine. Pages can be seen as stand-alone and can be loaded
> > inside my
> > > application. It is a bit dirty but back in the old Dyn1 days
> we needed to
> > have
> > > a parent.scroll.activate() call anyway. If you have links
> inside you will
> > need
> > > the scroll object to parse them and change them to
> > > 'javascript:scroll.load(.....)'
> > >
> > > Hope this helps anyone
> > >
> > >
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> > ---
> > Outgoing mail is certified Virus Free by AVG Free Edition
> > Download at: http://www.grisoft.com/html/us_index.cfm
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
>
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to