"this" always refers to the object that the function is attached. In the
cass of your start() function, it is the start function itself.
I believe that you are trying to access the document object that is attached
to the DynAPI object. Just use DynAPI.document instead of this.document.
This is the reason why we use the this.DynLayer code at the top of the
widgets. It attaches the function to the current widget and allows for
accurate use of "this" within the dynlayer constructor.
>From: "Quang Nguyen" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [Dynapi-Help] (no subject)
>Date: Fri, 07 Dec 2001 01:28:46 +0000
>
>The following code will not work:
>
>
><script language="Javascript" src="dhtmllib/dynapi.js"></script>
><script language="Javascript">
> DynAPI.setLibraryPath('dhtmllib');
> DynAPI.include('dynapi.api.*');
> DynAPI.include('dynapi.ext.inline.js')
></script>
><script LANGUAGE="JavaScript">
>function start()
> {step1Title = this.document.getAll()['step1TitleDiv']}
>DynAPI.onLoad = function()
>{
> start();
> alert("GOOD")
>}
></script></head><body>
><div id='step1TitleDiv'>test</div>
></BODY>
>
>
>Does anyone know if it is possible to call this.document.getAll() from
>anywhere but in DynAPI.onLoad?
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help