[Cartoweb-users] Drawing Tool Label
Damien Corpataux
damien.corpataux at camptocamp.com
Thu Sep 20 08:25:23 EDT 2007
Hi Paul,
I was thinking about using smth like <input type="text" blabalbla
onmouseup="window.open('some_url')" /> in outlinelabel.tpl
Does this help?
Cheers,
Damien
Paul Shapley wrote:
> Hi Damien,
>
> This seems like an easy way but i'm having problems adding the correct
> syntax to the 'onmouseup' event
>
> I'd like to have some more details about what code needs adding to the
> '/templates/outlinelabel.tpl' in particular the event:
>
> onmouseup= ???
>
> and what code should be added to 'templates/dhtmlcode.tpl'
>
> I really need to get to terms with the programming side of cartoweb!
>
> Regards,
>
> Paul Shapley
>
>
>
>
> On 10/09/2007, *Damien Corpataux* <damien.corpataux at camptocamp.com
> <mailto:damien.corpataux at camptocamp.com>> wrote:
>
> Hi Paul,
>
> To me, the easiest way of doing it is either
> - override the plugins/outline/templates/outlinelabel.tpl to add
> the event as inline html element attribute (onmouseup="blabla")
> - attach the event on page onload, e.g. in templates/dhtmlcode.tpl
>
> Regards,
> Damien Corpataux
>
>
> Paul Shapley wrote:
>> Hello Users,
>>
>> Cartoweb has a really nice function that when you create a
>> polygon/point etc it requests a label then an 'OK' to confirm the
>> label.
>> What do i need to do to get the 'Mouse Up' function of the 'OK'
>> confirmation button will open a web page URL form?.
>>
>> How do i do this, which php file has the code change?.
>>
>> Any help appreciated. Thank you
>>
>>
>> --
>> Paul J. Shapley
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Cartoweb-users mailing list
>> Cartoweb-users at lists.maptools.org <mailto:Cartoweb-users at lists.maptools.org>
>> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>>
>
>
> --
> Camptocamp SA
> Damien Corpataux
> PSE A
> CH-1015 Lausanne
>
> +41 21 619 10 22 (Direct)
> +41 21 619 10 10 (Centrale)
> +41 21 619 10 00 (Fax)
>
> P Please consider the environment
> Do you really need to print this email?
>
>
>
>
> --
> Paul J. Shapley
--
Camptocamp SA
Damien Corpataux
PSE A
CH-1015 Lausanne
+41 21 619 10 22 (Direct)
+41 21 619 10 10 (Centrale)
+41 21 619 10 00 (Fax)
P Please consider the environment
Do you really need to print this email?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070920/5e95d252/attachment.html
More information about the Cartoweb-users
mailing list