|
From: SReindl <SR...@la...> - 2000-11-21 17:50:23
|
It seems that u have to include at least the api package to initialize the
DynDocument.
When I insert the lines
<script>
DynAPI.setLibraryPath('js/lib/')
DynAPI.include('dynapi.api.*')
</script>
the error disappears ( my path is shorter, I use local, relative path and
did not check any further).
So, maybe you have to look for TWO errors. One from the missing init of the
api package an another one from within your code ...
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
|