Menu

#216 include fails if * not used (dynapi.api)

Verified
open
nobody
5
2002-05-23
2002-05-23
No

While trying out the example of animation suggested in
the tutorial, i got a couple of errors as 'is' is not
defined...

The thing is that replacing de explicit include of
dynapi.api packages by a dynapi.api.* include, they
stopped appearing.

The code that makes it fail is in the tutorial, but here you
have it also. Ive removed the animation stuff :):

Notes: i have moved the dynapi stuff into a js/dynapi dir
in my "webapp". The version i'm currently using is 2.5.6.

It fails in netscape (4.7) and explorer(5.0)

-------------code begin----------
<html>
<head>
<Script language="Javascript"
src="../js/dynapi/dynapi.js"></script>
<Script language="Javascript">

DynAPI.setLibraryPath\('../js/'\)

DynAPI.include\('dynapi.api.\*'\)
</script>
<script language="Javascript">

DynAPI.onLoad=function\(\) \{
    myLayer=new DynLayer\(\)
    myLayer.setSize\(100,100\)
    myLayer.moveTo

((DynAPI.document.w/2)-50,50)
myLayer.setHTML('DXCP
ANIMATION')

    DynAPI.document.addChild

(myLayer)

\}

</script>
</head>
<body>
</body>
</html>
-------------code end-------------

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.