I'm using DYNAPI2 in my new CMS called theForce, hosted in sourceforge.
It will use templates and phplib and dynapi2.
I now have 2 problems to ask the experts:
1 - In my portal, i sometimes need buttons, but sometimes I don't, and
sometimes I need them in more than one template... They have no
knowledge of the other... So.. it DynAPI.include aware of a component
that is already loaded and does it ignore it or does it load it again
and again??
2 - I can only begin to make my page at the end of loading. However
it's impossible to use
DynAPI.onload = function {
blah blah lah
}
I've worked out a system that uses on each template I need DHTML the
following 3 steps:
1 - Make a named function... i.e.
function login_form() {
blah blah blha
}
2 - Load its code to the loadfunction array...
DynAPI.addLoadFunction(login_form)
3 - Make it execute the function in the loadfunction array....
DynAPI.addLoadFunction("login_form()")
However, do I need this??? Is there another way to "pipe" functions, so
that they are executed??? All DYNAPI example use onload only. But if I
have nnn functions I wish to see executed but I don't know what they
are or which components will they use at the beginning??
I think loading all the .js isn't the answer, and probably there is a
better way for "piping" than addLoadFunction..
Sorry for my English. Hope you get it.
Fernando (PORTUGAL)
=====
-----------------------------------------------------------
FERNANDO EMMANUEL DA COSTA PEREIRA NUNES
-----------------------------------------------------------
Banco Portugues de Investimento (+351)226074362
Faculdade de Engenharia - LEIC 5� (+351)933565686
PORTO - PORTUGAL [EMAIL PROTECTED]
-----------------------------------------------------------
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev