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