MapTools.org

[Chameleon] Steps for creating your own widget?

Dave Astolfo dastolfo1@cogeco.ca
Tue, 10 Feb 2004 17:20:21 -0500
Hi,

I am going to create a widget. I have read the documentation on doing
so, but am still a little unclear on how to go through the steps. Can
anyone provide a little 101 on this topic?

Questions:

1)Upon looking at other widgets, some seem to have a common set of
functions in them, is there a minimum set of functions that are
required? If so, which ones?

2)Once the widget code (php) file is created, how do you "tell"
Chameleon or your template that it is available for use so that when I
call <cwc2 widgetName... it will call the widget I have created?

3)Is there a specific mechanism for including JavaScript in a widget?
What I need to so is similar to the following:

(in pseudocode)

<?php

do php stuff here

?>  


  JSFunctionCall(parameter1, parameter2, parameterN)


Thanks in advance,


Dave




This archive was generated by Pipermail.