[Cartoweb-users] Help

Oliver Christen oliver.christen at camptocamp.com
Fri Mar 23 06:37:01 EST 2007


Hi Andreas

the texte you replied to was a response to Luigi Marotta question. Do you
work with him?
if yes, you can see the answer there
http://lists.maptools.org/pipermail/cartoweb-users/2007-March/002239.html

otherwise I suppose I never received your question and some mix-up happened
with your emails

regards
Oliver



----- Original Message ----- 
From: "MUTOTA" <s9911197 at students.polytechnic.edu.na>
To: <cartoweb-users at lists.maptools.org>
Sent: Friday, March 23, 2007 11:33 AM
Subject: [Cartoweb-users] Help


> Hi list!
>
> I got the far bellow information from Oliver christen but it
> is uncclear enough.
>
> I can get hold of christen or subscribing striaght to the list member.
>
> In the bellow info, there  is talking about templates ,client and server
> should be edited at least. I want to fix my application as well but those
> files (templates ,client and server )are not real specified.
> Please i fan idea direct me so that I will be able to display my mainmap
> which
> is refusing to show up.
>
> (1) Which files do I have to edit to make my mainmap displayed?
> (2) In which file as well I can edit <input  type="submit"
> value="ok" /> TO <input type="submit"
> name="specialactiontrigger" value="ok" /> ?
>
>
> Thank you very much for your help
>
> Andreas Mutota
>
>
>
>> first you need to
>>recover the submit action. a simple <input     > type="submit"
>> value="ok" /> as you set in your template will simply     > post the
>> form but initiate no action. give a name to you input     > <input
>> type="submit" name="specialactiontrigger" value="ok" /> if     > you
>> dont give a name to your input they are simply ignored.    >     >
>> next step is to recover the "specialactiontrigger" in the client
>> part    >
>>
>> - Ignored:
>>     > declare the variable at the beginning of the plugin:
>>     >
>>     > protected $specialactiontrigger;
>>     >
>>     > to do so use the handleHttpPostRequest($request) function,
>> like this:    >     > handleHttpPostRequest($request) {    >     if
>> (isset($request['specialactiontrigger']) {    >         $this-
>> >specialactiontrigger = true;    >     } else {    >         $this-
>> >specialactiontrigger = false;    >     }    > }    >     > you need
>> to put something in the buildRequest() { } function,    >  otherwise
>> the server part will not be called something like :    >     >
>> public function buildRequest() {    >         if ($this-
>> >specialactiontrigger) {    >             return
>> >$this->specialactiontrigger;
>>     >         }
>>     >
>>     >     }
>>     >
>>     > then, on the server part:
>>     >
>
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>



More information about the Cartoweb-users mailing list