Hi Valerio,

you can do it with a very small plugin:

for example plugin 'test':

1) make a new directory inside plugins directory and named it 'test'
2) inside put 2 files, 'config.inc' ad 'test.js'
3) into config.inc write that:
<?php
$jsFiles = array("test.js");
$jsTocInitFunction = "PM.Plugin.test.initToc()";
?>

4) inside test.js write that:
$.extend(PM.Plugin,
{
     test:
     {
         layer_to_trig: ['<name_of_layer_in_config_file>'],

         initToc: function() {
           $.each(this.layer_to_trig,function(){
               var selector = '#ginput_'+ this;
               $(selector).click(function(){
                   if(this.checked)
                     alert('clicked');
               });

           });
         }
     }
});

5) change <name_of_layer_in_config_file> with the name layer system that 
you write inside config file
6) add <plugin>test</plugins> in your config file

That's all
I hope this can help you
W

Il 08/08/2012 16:45, Valerio ha scritto:
> Hi all...any suggestions?
>
> thanks...
>
> V
>
> 2012/8/3 Valerio <notis...@gmail.com>:
>> Hi all,
>> I need to open a disclaimer alert message (pop up or dhtml window) when a
>> particular layer is checked (toggle visible).
>> Is there a fast way to do that modifying source code?
>>
>> thanks in advance
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users


-- 

Walter Lorenzetti phD
email: lorenze...@gis3w.it
skype: aiki74
Cell: (+39) 347-6597931  Tel+Fax: (+39) 0588 85021
Viale Giuseppe Verdi n. 24, 51016
Montecatini Terme,Pistoia
P.IVA 01686280478
Italy


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to