Chris, 

I can't say for DynAPI1 but in DynAPI2 (the only one I have known)
you use and event handler, 

such as... 

        myLP = new LoadPanel()
        var el = new EventListener(myLP);
        el.onload = function(e) {
                o = e.getTarget()
                // o == myLP so go for it in here

        }
        myLP.addEventListener(el);



-----Original Message-----
From: Williams, Chris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 February 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] Scripts in LoadPanel


Hi There

I am just in the middle of converting a site from DynAPI1 to DynAPI2.

I have resolved most of my issues but....

Previously I was using onload in the BODY tag to write information to a
layer from a page that was loaded in a LoadPanel (well it used to be a
scrollwindow).  As different pages are loaded in the LoadPanel,
information specific to each page was written to a DynLayer.

This does not seem to work in DynAPI 2.  ie ignores the the script.  NS
executes the script but writes to the LoadPanel instead of the DynLayer.

Am I missing something?  Should scripts execute from the BODY tag of a
file loaded into a LoadPanel?  Is there another way to achieve this?

Cheers

Chris Williams
IT  Analyst - HRIT Asia Pacific, Cisco Systems (Australia) Pty Ltd.
_____________________________________________________
Phone: +61 2 8446 5020  Fax: +61 2 8446 8410
Mobile: 0402 896 764    E-mail: [EMAIL PROTECTED]


_______________________________________________
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

Reply via email to