[Chameleon] Widget Dependency
Bart van den Eijnden
BEN at Syncera-ITSolutions.NL
Fri Jun 24 02:22:27 EDT 2005
Abe,
I think the way this is done is by checking in your widget code if the JSAPI sharedresource is loaded. If this is not the case and your widget depends on it, you could raise an error or echo something so the application developer would see and could correct the problem.
if (isset($this->maSharedResourceWidgets["CWCJSAPI"]))
$bCWCJSAPI = 1;
else
$bCWCJSAPI = 0;
Btw a lot of widgets have a JSAPI mode of operation and a normal mode of operation.
Hope this helps.
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Abe Gillespie <abe.gillespie at gmail.com> 06/23/05 10:42pm >>>
I'm just getting into using / developing-for Chameleon; forgive my
ignorance. What's the best way to create a dependency of one widget
on another. Specifically, how can I ensure the cwcjsapi widget is
loaded since a custom widget I'm writing depends on it.
Thanks.
-Abe
_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
More information about the Chameleon
mailing list