Hi,
 
thank you all for reply, i would like to say that i tested the select layers 
plugin on a clean version of pmapper and it's run correctly but with my 
coustmized version it gives me that error in this line:and my sitting in XML 
file is
[12:56:17.500] $.isArray is not a function @ 
http://localhost/pmapperegypt/incphp/js/js_session.php?:138
$.extend(PM.Plugin,{Layerselect:{root: 
null,layerselectDlgOptions:{width:260,height:400,left:200,top:150,resizeable:true,newsize:false,container:'pmDlgContainer'},openDlg:
 function(){var 
dlgwin=PM.Dlg.createDnRDlg(this.layerselectDlgOptions,_p('Select 
Layers'),false);$('#pmDlgContainer_MSG').append($('<span>'+_p('Available 
Layers')+'</span>')).append(this.createTree()).treeview().append($('<div>').append($('<inputtype="button"
 
value="'+_p('Update')+'">').click(function(){PM.Plugin.Layerselect.updateToc()})));PM.getSessionVar('categories','PM.Plugin.Layerselect.updateTree(response)');},createTree:
 function(){this.root=PM.ini.pluginsConfig.layerselect.categories.category;if(! 
$.isArray(this.root)){this.root=[PM.ini.pluginsConfig.layerselect.categories.category];};var
 tree=$('<ul>').addClass('pm-toctree');$.each(this.root,function(){var 
catName=this.name;var catDescr=this.description?_p(this.description): 
_p(this.name);var
 cat=$('<li>').append($('<inputtype="checkbox" id="lscat_'+this.name+'" 
name="ls_catcbx"><spanclass="pm-toctree-cat">'+catDescr+'</span>')).find('input').each(function(){$(this).click(function(){var
 
checked=$(this).is(':checked');$(this).parent().find('li>input').each(function(){$(this).attr('checked',checked);});});}).end();var
 grpList=$('<ul>');var groupArray=$.isArray(this.group)?this.group : 
[this.group];$.each(groupArray,function(key,value){try{$('<li>').append($('<inputtype="checkbox"
 id="lsgrp_'+value+'" 
name="ls_grpcbx"><spanclass="pm-toctree-grp">'+PM.grouplist[value].description+'</span>')).find('input').each(function(){$(this).click(function(){$(this).parent().parent().parent().find('input[name="ls_catcbx"]').each(function(){$(this).attr('checked',true)});});}).end().appendTo(grpList);}catch(e){console.log(e);console.log('Group
 "'+value+'" is not defined correctly in<categories>. Check config
 XML!');}});grpList.appendTo(cat);tree.append(cat);});return tree;},updateTree: 
function(response){$.each(response,function(cat,params){$('#lscat_'+cat).attr('checked',true);$.each(params.groups,function(){$('#lsgrp_'+this).attr('checked',true);});});},updateToc:
 function(){$('#layerform').find('input[name="groupscbx"]').each(function(){var 
cbxId=$(this).id().replace(/ginput_/,'');$(this).is(':checked')?PM.defGroupList.addunique(cbxId):
 PM.defGroupList.remove(cbxId);});var 
val='{';$('#pmDlgContainer_MSG').find('input[name="ls_catcbx"]:checked').each(function(i){var
 sepc=i<1?'' : ',';val+=sepc+'"'+$(this).id().replace(/lscat_/,'')+'":';var 
catDescr=$(this).parent().find('span.pm-toctree-cat').html();val+='{"description":"'+catDescr+'","groups":
 
[';$(this).parent().find('input[name="ls_grpcbx"]:checked').each(function(j){var
 sepg=j<1?'' : 
',';val+=sepg+'"'+$(this).id().replace(/lsgrp_/,'')+'"';});val+=']}';});val+='}';PM.Map.forceRefreshToc=true;var
 
sessionval=val.replace(/,\]/g,']').replace(/,\}/,'}');PM.setSessionVar('categories',sessionval,'PM.Toc.init("PM.Toc.setlayers(false,false)")');}}});
<map>
<categories>
                <category name="Boundaries" closed="true">
                    <group>egy_gov</group>
                    <group>egy_sec</group>
                  </category>
.
.
</categories>
 
<pluginsConfig>
               <layerselect>
      <categories>
                   <category name="Boundaries">
                    <group>egy_gov</group>
                 <group>egy_sec</group>
              </category>
    </categories>
            </layerselect>
        </pluginsConfig>
 
thanks alot,hope help me
 

________________________________
From: Serge Claudio Rafanoharana <rafanohar...@gmail.com>
To: armin.bur...@gmx.net; pmapper-users <pmapper-users@lists.sourceforge.net> 
Sent: Saturday, March 24, 2012 1:31 PM
Subject: Re: [pmapper-users] still error

Dear Armin,

You are right, and the thing is that even one semicolon missing would
create lots of trouble...
Sayed> If you can provide those information mentioned by Armin, more people
can try to figure out your problem...

Regards,
Serge

On Sat, Mar 24, 2012 at 5:54 PM, Armin Burger <armin.bur...@gmx.net> wrote:

> Serge
>
> I don't think anyone will be able to help him unless he reports at least
> his settings used in the XML, and some decent JS reporting logs (from
> Firebug or Chrome, not just the pretty useless IE stuff). Anything else
> will just be shots into the dark...
>
> armin
>
> On 24/03/2012 10:45, Serge Claudio Rafanoharana wrote:
> > Hi Sayed,
> >
> > Can you try a clean install of pmapper and add the plugin and check
> whether
> > it is working or not?
> >
> > Regards,
> > Serge
> >
> > On Sat, Mar 24, 2012 at 4:28 PM, Eman Sayed<eman_saye...@yahoo.com>
>  wrote:
> >
> >> hi,
> >> after alot of revison the error is changed
> >> *
> >>
> >> Message: Object doesn't support this property or method
> >> Line: 139
> >> Char: 681
> >> Code: 0
> >> URI:
> >>
> http://localhost/pmapperegypt/incphp/js/js_session.php?PHPSESSID=vs28he1rerhj8a2frekiaj8sj0
> >> *
> >>
> >>    *From:* Serge Claudio Rafanoharana<rafanohar...@gmail.com>
> >> *To:* Eman Sayed<eman_saye...@yahoo.com>; pmapper-users<
> >> pmapper-users@lists.sourceforge.net>
> >> *Sent:* Friday, March 23, 2012 10:39 PM
> >> *Subject:* Re: [pmapper-users] still no layers
> >>
> >> Hi Sayed,
> >>
> >> I don't know what's wrong but I'm just wondering whether it is a problem
> >> related with permission or not... Would you mind to check in that part?
> >>
> >> Regards,
> >> Serge
> >>
> >> On Sat, Mar 24, 2012 at 2:36 AM, Eman Sayed<eman_saye...@yahoo.com>
> >> wrote:
> >>
> >>> Hi,
> >>> thanks for your reply i made all of that but still the select layer
> >> window
> >>> empty after word "Available Layers"
> >>>
> >>> and the error is
> >>> Message: 'PM.ini.pluginsConfig.layerselect.categories' is null or not
> an
> >>> object
> >>> Line: 139
> >>> Char: 618
> >>> Code: 0
> >>> URI: http://localhost/pmapperegypt/incphp/js/js_session.php?
> >>>
> >>>
> >>>  *From:* Serge Claudio Rafanoharana<rafanohar...@gmail.com>
> >>> *To:* Eman Sayed<eman_saye...@yahoo.com>; pmapper-users<
> >>> pmapper-users@lists.sourceforge.net>
> >>> *Sent:* Friday, March 23, 2012 2:12 PM
> >>> *Subject:* Re: [pmapper-users] no layers names added
> >>>
> >>> Hi Sayed,
> >>>
> >>> Try to define the category name in incphp/locale/your_language
> >>> Something like:
> >>>
> >>> *config....xml*
> >>> ...
> >>> <category name="cat_admin">
> >>> ...
> >>>
> >>> *language_en.php*
> >>> ...
> >>> $_sl['cat_adm'] = 'Data Administrative';
> >>> ...
> >>>
> >>> and make sure you followed carefully
> >>> http://svn.pmapper.net/trac/wiki/PluginsLayersManagement
> >>>
> >>> and that you remove:
> >>>
> >>> <allGroups>
> >>>                ...
> >>>                ...
> >>>                ...
> >>> </allGroups>
> >>>
> >>> in your *congig....xml*
> >>>
> >>>
> >>> Cheers,
> >>> Serge
> >>>
> >>>
> >>> On Fri, Mar 23, 2012 at 6:11 PM, Eman Sayed<eman_saye...@yahoo.com>
> >>> wrote:
> >>>
> >>>> thanks alot for your help i used select layers plugin but it's empty
> >>>> dailoge no layers names appeared
> >>>>
> >>>>
> >>>>
> >>>> ________________________________
> >>>> From: Chris Jackson<webturt...@gmail.com>
> >>>> To: Eman Sayed<eman_saye...@yahoo.com>
> >>>> Cc: "pmapper-users@lists.sourceforge.net"<
> >>>> pmapper-users@lists.sourceforge.net>
> >>>> Sent: Friday, March 23, 2012 8:27 AM
> >>>> Subject: Re: [pmapper-users] show map layer by combo box
> >>>>
> >>>>
> >>>> Hi
> >>>> How about the layer selection plugin -
> >>>> http://svn.pmapper.net/trac/wiki/PluginsLayersManagement.
> >>>> Chris
> >>>> On 23 Mar 2012 05:15, "Eman Sayed"<eman_saye...@yahoo.com>  wrote:
> >>>>
> >>>> hi,
> >>>>> i want to make a combo box contain a number of map layers names when
> >> the
> >>>> user choose one it will be added on the map.
> >>>>> please help
> >>>>
> >>>>
> >>>
> >>>
> ------------------------------------------------------------------------------
> >>>>> This SF email is sponsosred by:
> >>>>> Try Windows Azure free for 90 days Click Here
> >>>>> http://p.sf.net/sfu/sfd2d-msazure
> >>>>> _______________________________________________
> >>>>> pmapper-users mailing list
> >>>>> pmapper-users@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> >>>>>
> >>>>
> >>>>
> >>>
> >>
> ------------------------------------------------------------------------------
> >>>> This SF email is sponsosred by:
> >>>> Try Windows Azure free for 90 days Click Here
> >>>> http://p.sf.net/sfu/sfd2d-msazure
> >>>> _______________________________________________
> >>>> pmapper-users mailing list
> >>>> pmapper-users@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Serge
> >>>
> >>>
> >>
> ------------------------------------------------------------------------------
> >>> This SF email is sponsosred by:
> >>> Try Windows Azure free for 90 days Click Here
> >>> http://p.sf.net/sfu/sfd2d-msazure
> >>> _______________________________________________
> >>> pmapper-users mailing list
> >>> pmapper-users@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> >>>
> >>>
> >>>
> >>
> >>
> >> --
> >> Serge
> >>
> >>
> ------------------------------------------------------------------------------
> >> This SF email is sponsosred by:
> >> Try Windows Azure free for 90 days Click Here
> >> http://p.sf.net/sfu/sfd2d-msazure
> >> _______________________________________________
> >> pmapper-users mailing list
> >> pmapper-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/pmapper-users
> >>
> >>
> >>
> >
> >
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>



-- 
Serge
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to