|
From: <jir...@co...> - 2005-10-18 13:04:32
|
Hi,
Thanks for pointing me to the tip.createwidget.html.
I put my files to src/dod4/ folder and added these lines to the =
packages.js:
// dod4
l.addPackage('dynapi.dod4',p+'dod4/');
l.add('dynapi.dod4.data','data.js');
l.add('dynapi.dod4.showhide','showhide.js');
l.add('dynapi.dod4.mouse','mouse.js');
l.add('dynapi.dod4.image','image.js');
and then this into my index.html:
...
dynapi.library.setPath('./src/');
dynapi.library.include('dynapi.api');
dynapi.library.include('dynapi.debug');
dynapi.library.include('dynapi.library');
=09
dynapi.library.include('dynapi.dod4');
The files load just fine, but the DynAPI debugger still says:
...
loaded [dynapi.api.DynLayer]
loaded [dynapi.api.MouseEvent]
Library Error: could not find [data]
Library Error: could not find [showhide]
Library Error: could not find [mouse]
Library Error: could not find [image]
Do i need to worry about this?
Is there a better way to include the files?
Thanks,
Jirka
-----Original Message-----
From: dyn...@li...
[mailto:dyn...@li...] On Behalf Of Leif W
Sent: Monday, October 17, 2005 12:40 AM
To: dyn...@li...
Subject: Re: [Dynapi-Dev] loading *.js files
> From: Ji=F8=ED Bla=BEek / comcare <jir...@co...>
> Received: Sat, 15 Oct 2005 05:40:44 PM EDT
>=20
> I am updating an old site done in dynAPI 2.54 to work with dynapi3.
Hopefully you've noticed it's not a drop-in replacement. Some things =
are a
bit different... widgets, function names, arguments (type or order)...
general
API differences.
> Due to my lack of knowledge of both Javascript and dynAPI, I don't =
know
how
> to include my .js files.
Old JS files can't be dropped in and expected to automatically work... =
but
to
include files, check the stuff in "examples". View the source.
> It used to be like this:
>=20
> DynAPI.include('data.js','./scripts/')
If you need to create new widgets, you probably want to put them under =
src,
maybe make your own folder, but otherwise follow the tips for creating
widgets.
dynapi/docs/docs/tip.createwidget.html
=20
> How do i do this with the new library syst=E9m? I have the DynAPI 2.9
The current release is dynapi-3.0.0-beta2. It is a dump of the CVS as =
of
early August 2005. Several bugs had been fixed since the beta1 release.
> changelog, but I still don't understand. Is there anywhere else to =
find
more
> information on this?
Most of the formal documentation is under the docs folder, and code is =
in
the
examples folder.
If you are converting, it may be easier to identify all the widgets you =
use
in
DynAPI2, then look through the examples, make some of your own =
modifications
as needed, and so determine which of the DynAPI3 widgets you can use, =
and
then
have an idea of what (if anything) you might need to create or port.
Without downloading anything, you can look at
http://dynapi.sourceforge.net/releases/ to find the most current version =
of
the API. I try to update the CVS there when I add something to real =
CVS,
but
it is not an exact mirror and not automated so it can lag behind actual =
CVS.
Leif
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, =
discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Dynapi-Dev mailing list
Dyn...@li...
http://www.mail-archive.com/dyn...@li.../
|