[Cartoweb-dev] New Plugin with Dropdown
oliver.christen at camptocamp.com
Wed Oct 24 09:56:22 EDT 2007
posted.value=0 means handleHttpPostRequest will NOT be triggered. This is
any reason why are you setting this value to 0 ?
> thanks, I will also do that :-) But I have another question. In
> cartoclient.tpl I defined the dropdown with the following onchange value:
> It seems, that this action does not trigger the handleHttpPostRequest
> method in my plugin... I added some debug output and I see that this
> method will not be executed if I select something in the menu. But if I
> load another plugin, which also implements the handleHttpPostRequest
> method and trigger it, the dropdown-plugin's handleHttpPostRequest will
> also be executed. The latter behavior makes sense, but the first one
> indicates that I chose the wrong onchange value, doesn't it?
> Oliver Christen wrote:
>> "drawing" interface content is done via renderForm
>> handling a action is done via handleHttpGetRequest/handleHttpPostRequest
>> it doesnt matter if you do it with one or two plugin, though I would
>> preferably do it in one, simply to keep related logic together.
>>> Hi all,
>>> I think, my question has to go to this list, not to the user list, but
>>> I'm not sure about it.
>>> I created a dropdown menu in a plugin, which should be used to select
>>> something, which then triggers an action according to the selection.
>>>> From my understanding, "drawing" the dropdown menu and handle the
>>> selection should be different plugins... Can somebody confirm this? Or
>>> is there a possibility to "draw" the menu and handle the user's
>>> selection within the same plugin?
>>> Cartoweb-dev mailing list
>>> Cartoweb-dev at lists.maptools.org
More information about the Cartoweb-dev