[Cartoweb-users] Problem for integrating geostat in a specificproject

Oliver Christen oliver.christen at camptocamp.com
Tue Mar 17 05:02:05 EST 2009


hi
usually, an error like AjaxPlugins.Geostat not found
mean the javascript file is not loaded at all.
in your browser, look at the page source and see if the Geostat.ajax.js is present in the header and if the file can be found using the path generated.

  ----- Original Message ----- 
  From: thomas gratier 
  To: cartoweb-users at lists.maptools.org 
  Sent: Wednesday, March 11, 2009 11:53 AM
  Subject: [Cartoweb-users] Problem for integrating geostat in a specificproject


  Hello,

  I have created a specific project without Geostat.
  I need now to integrate this fonctionnality in the project but there's a matter.
  The plugins is not found. With spy expression AjaxPlugins in firebug, AjaxPlugins array doesn't contain geostat nor mapOverlay.

  It works when I test my configuration in the demoGeostat project.
  So in my own project, I cute and paste my geostat.ini (server and client side) , I put in my mapfile the layer needed for geostat, I don't add new layers in layers.ini, mapOverlay and geostat are enabled on client.ini and myproject.ini
  toolPickerOn =true on client.ini
  Forget to say I do the change made in client.ini to client.ini.in

  I put in the cartoclient_main.tpl (a tpl loaded after an authentification, called just after cartoclient.tpl) the 




  {if $toolpicker_active|default:''}<link rel="stylesheet" type="text/css" href="{r type=css}toolPicker.css{/r}" title="stylesheet" />{/if} 



    {if $geostat|default:''}<link rel="stylesheet" type="text/css" href="{r type=css plugin=geostat}geostat.css{/r}" />{/if}





  {if $geostat|default:''}<script type="text/javascript" src="{r type=js plugin=geostat}Geostat.ajax.js{/r}"></script>{/if}




  in the head part, and in the body part





  <div id="folder8" class="folder">

        {$geostat}

      </div>



  {if $toolpicker_active|default:''}

       {include file="toolPicker.tpl"}

     {/if}




  I have reloaded the change with cw3setup.php, clean the project, empty the cache in my browser and reloaded the page.

  When I tick the box "Display geostatistics" I get the error below


  Error: AjaxHandler.doAction(): object AjaxPlugins.Geostat not found. AJAX action aborted

  So as said previously, AjaxPlugins array don't call the geostat and mapOverlay function.




  I want to know which things can explain this state and how AjaxPlugins is populated with plugins call.





  Thanks for answers, advices




  Regards





  ThomasG












------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20090317/c8b490cc/attachment.htm 


More information about the Cartoweb-users mailing list