i'm not too sure, but it is possible that the use of setHTML() being after the
execution of the <script> tags is causing the code to be lost.

try creating the layers and then adding them using the afterload event.

Ramon Buckland wrote:

> Michael Pemberton, (and others)
>
> We have implemented your(Michael) AfroAPI LoadPanel version into our
> codebase and all is working well.
> Except for a small glitch I guess, We are creating layers from a database,
> such that ..
>
> Layer 1 <--- has a URL to an ASP page say X.asp?id=layer1
>         X.asp returns Code in <script></script> tags to Add children to
> Layer 1
>
> so on and so forth,
>
> We call Layer1.setURL(X.asp?id=layer1) and it returns for us the layer and
> some <SCRIPT> tags
>
> The children from X get created into Layer 1 from the SCRIPT tags
>
> (I checked this by iterating over Layer1.children after it loads and it they
> children are there
> and have sizes and HTML etc )
>
> FACT: <script> tags execute layer1.addChild(new Layer etc etc)
> FACT: children created from above exist and can get the properties etc
>
> but they don't show up, you can get the X and Y locations of each children
> relative to the Parent Layer1
> their HTML exists and is correct as it _also_ comes from a setURL from the
> database (X.asp)
>
> layer1.children[x].created is true for all the children
>
> it is hard to explain
> without an example but the page in question is actually
> intertwined in our development environment.
>
> Any pointers as to where we can look to get the layers to show ?
>
> Is there a function to 'recreateAll' or redrawAll  in case that is it
>
> Thanks for help
>
> ------------------------------------------------
> Ramon Buckland
> Applications Engineer
>
> email: [EMAIL PROTECTED]
> web:   www.f5.com.au
> phone: (07) 3257 7900
> fax:   (07) 3257 7955
>
> f5. Make the Medium Work. Simple.
> ------------------------------------------------
>
> > -----Original Message-----
> > From: Michael Pemberton [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 5 March 2001 10:51 PM
> > To: Ramon Buckland
> > Subject: Re: DynAPI Loadpanel and your AfroAPI version
> >
> >
> > the mac version of java does not include the URLConnection
> > class (used to
> > actually download that content).
> >
> > it is a fairly major glitch and I don't see any way of
> > getting around it in
> > the short term.
> >
> > Ramon Buckland wrote:
> >
> > > Hi Michael,
> > >
> > > Thanks for that ..
> > > What is the exact problem with the macs ?
> > >
> > > We have some clients that are Macs that we will need this
> > > to support.
> > >
> > > Thanks Michael
> > >
> > > ------------------------------------------------
> > > Ramon Buckland
> > > Applications Engineer
> > >
> > > email: [EMAIL PROTECTED]
> > > web:   www.f5.com.au
> > > phone: (07) 3257 7900
> > > fax:   (07) 3257 7955
> > >
> > > f5. Make the Medium Work. Simple.
> > > ------------------------------------------------
> > >
> > > > -----Original Message-----
> > > > From: Michael Pemberton [mailto:[EMAIL PROTECTED]]
> > > > Sent: Saturday, 3 March 2001 3:02 PM
> > > > To: Ramon Buckland
> > > > Subject: Re: DynAPI Loadpanel and your AfroAPI version
> > > >
> > > >
> > > > just place the attached file in src/lib/dynapi/file and
> > > > included then the way
> > > > you would any other part of the dynapi (io, then url)
> > > > the applet is automatically inserted.
> > > >
> > > > then, setURL should now be a method of all dynlayers.
> > > >
> > > > not that due to java security restrictions, this does not
> > > > work in NS6 (just
> > > > returns a security message)
> > > > it also does not work on macs due to problems with the
> > mac java vm.
> > > >
> > > > Ramon Buckland wrote:
> > > >
> > > > > Michael,
> > > > >
> > > > > Is it possible for your afroAPI version of the LoadPanel;
> > > > >
> > > > > file - url  along with the url.class file to be used in
> > the existing
> > > > > DynAPI ? Reason being we need your extra functionality but
> > > > are fairly
> > > > > bound by the DynAPI in out current setup.
> > > > >
> > > > > If so ,. what would I need to do to get this going (I had a
> > > > quick suiz, but
> > > > > I figured you could point me in the right direction.
> > > > >
> > > > > Thanks
> > > > >
> > > > > ------------------------------------------------
> > > > > Ramon Buckland
> > > > > Applications Engineer
> > > > >
> > > > > email: [EMAIL PROTECTED]
> > > > > web:   www.f5.com.au
> > > > > phone: (07) 3257 7900
> > > > > fax:   (07) 3257 7955
> > > > >
> > > > > f5. Make the Medium Work. Simple.
> > > > > ------------------------------------------------
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: doug moore [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Thursday, 1 March 2001 12:43 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Re: [Dynapi-Help] LoadPanel as a messenger (oops)
> > > > > >
> > > > > >
> > > > > > ok.. i found where the right demos where, but i don't quite
> > > > > > see how they are
> > > > > > different from anything that already exists.. i was under the
> > > > > > impression that
> > > > > > it would somehow help to load content from a dynamic page
> > > > > > (i.e. .asp, .php,
> > > > > > or .cfm) into an already loaded document without a
> > page reload..
> > > > > >
> > > > > > doug.
> > > > > >
> > > > > >
> > > > > > Quoting Michael Pemberton <[EMAIL PROTECTED]>:
> > > > > >
> > > > > > > It appears that the subdomain setup is broken.
> > > > > > >
> > > > > > > You can download it here:
> > > > http://freeshell.org/~afroapi/afroapi.zip
> > > > > > > The examples can be found here:
> > > > > > http://freeshell.org/~afroapi/examples/
> > > > > > >
> > > > > > > --
> > > > > > > Michael Pemberton
> > > > > > > [EMAIL PROTECTED]
> > > > > > > ICQ: 12107010
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > 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
> > > > > >
> > > >
> > > > --
> > > > Michael Pemberton
> > > > [EMAIL PROTECTED]
> > > > ICQ: 12107010
> > > >
> > > >
> >
> > --
> > Michael Pemberton
> > [EMAIL PROTECTED]
> > ICQ: 12107010
> >
> >
> >
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




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

Reply via email to