|
From: Pascal B. <pa...@dy...> - 2000-11-21 18:11:44
|
are you sure you'r using the latest dynapi.js file?
also make sure to add these lines:
DynAPI.include('dynacore.api.dynlayer.js')
DynAPI.include('dynacore.api.browser.js')
DynAPI.include('dynacore.api.dyndocument.js')
which should make sure the DynAPI.document is always available.
Pascal Bestebroer
pa...@dy...
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: dyn...@li...
> [mailto:dyn...@li...]Namens Peter Curran
> Verzonden: dinsdag 21 november 2000 15:44
> Aan: dyn...@li...
> Onderwerp: [Dynapi-Help] Re: Problems with DynAPI2 and Dynacore
>
>
> At 12:32 PM 18/11/00 -0800, you wrote:
>
> >From: "SReindl" <SR...@la...>
> >To: <dyn...@li...>
> >Subject: AW: [Dynapi-Help] Problems with DynAPI2 and Dynacore
> >Date: Sat, 18 Nov 2000 10:20:41 +0100
> >
> >Peter,
> >you probably solved the problem in the meantime.
> >Mostly, the error you mentioned (DynDocument not defined) refers to some
> >unclosed braces somwewhere in the code. It is a little bit tricky to find
> >the position, since there is almost no relation between the line
> (52) of the
> >error and the actual position.
> >Unclosed braces can be missing ", ', ), ], or } ...
> >
> >Stephan
>
>
> Stephan - thanks very much for your response. Unfortunately, it hasn't
> helped. I have managed to reduce the problem to a much smaller
> file - just
> one this time. And, in the process, caused it to also appear in IE5.5, as
> well as NS4.73 as before.
>
> Here is my new source file:
>
> [[html]]
> [[head]]
> [[title]]Demo[[/title]]
> [[script
> src="file:///C:/Tools/DynApi2/dynapi/js/dynapi.js"]][[/script]]
> [[/head]]
> [[body]]Demo[[/body]]
> [[/html]]
>
> (As before, I replaced angle brackets with [[ and ]], to avoid e-mail
> problems).
>
> I have run this through "tidy" (the W3 Consortium's HTML
> validator) and it
> reports only one warning, that the language type is not specified on the
> SCRIPT tag (a deliberate omission, in this case). It also adds a
> DTD line,
> but that is not a problem here.
>
> Both IE and NS report the same error - DynDocument not defined on line 52
> of dynapi.js.
>
> In the original file, which has this code plus a whole lot more, only NS
> has a problem - IE handles it correctly. I can't see any
> mismatched braces,
> or anything else that could be wrong in this code. If there are any, they
> would have to be in dynapi.js - in which case, presumably
> everyone would be
> having problems.
>
> Peter Curran Software Developer Casebank Technologies Inc.
>
> _______________________________________________
> Dynapi-Help mailing list
> Dyn...@li...
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
>
|