[Cartoweb-users] Geostat update menu without updating map

Oliver Christen oliver.christen at camptocamp.com
Fri Jun 27 01:25:31 EDT 2008


errr, the demoPlugins is not an ajaxified project so you probably miss some template parts, I suggest you look at the demoCW3 or demoGeostats templates.

do you have ajaxOn = true in your client.ini ?

  ----- Original Message ----- 
  From: Albert Casanovas 
  To: Oliver Christen ; cartoweb-users at lists.maptools.org 
  Sent: Thursday, June 26, 2008 7:10 PM
  Subject: Re: [Cartoweb-users] Geostat update menu without updating map


  Hi Oliver,

  It is displayed in the demoGeostat doing these modifications but not in my project which I adapted initially from demoPlugins.

  Regards,
  Albert

    ----- Original Message ----- 
    From: Oliver Christen 
    To: Albert Casanovas ; cartoweb-users at lists.maptools.org 
    Sent: Thursday, June 26, 2008 3:16 AM
    Subject: Re: [Cartoweb-users] Geostat update menu without updating map


    it should be displayed automaticaly when you have ajax mode enabled AND profile is set to development in your client.ini

    regards
    Oliver

      ----- Original Message ----- 
      From: Albert Casanovas 
      To: Oliver Christen ; cartoweb-users at lists.maptools.org 
      Sent: Wednesday, June 25, 2008 4:36 PM
      Subject: Re: [Cartoweb-users] Geostat update menu without updating map


      Hi Oliver,

      Sorry but what is the JSTraceDebugger ? and how can I activate it? I didn´t find it in the documentation.

      Thanks a lot,
      Albert

        ----- Original Message ----- 
        From: Oliver Christen 
        To: Albert Casanovas ; cartoweb-users at lists.maptools.org 
        Sent: Wednesday, June 25, 2008 3:16 AM
        Subject: Re: [Cartoweb-users] Geostat update menu without updating map


        Hi
        somehow the images coreplugin is activated
        clear the JSTraceDebugger windows and trigger the UpdateMenu command via the select, then copy the content of the JSTraceDebugger windows and show me that.

        regards
        Oliver
          ----- Original Message ----- 
          From: Albert Casanovas 
          To: Oliver Christen ; cartoweb-users at lists.maptools.org 
          Sent: Tuesday, June 24, 2008 5:32 PM
          Subject: Re: [Cartoweb-users] Geostat update menu without updating map


          Hi Oliver,

          Yes I´m triggering the UpdateMenu in this select:

          <select name="geostatChoroplethLayer" 
              onchange="javascript:CartoWeb.trigger('Geostat.UpdateMenu', 'doSubmit()');">
          <option value="def">{t}Select geographic entities...{/t}</option>
          {html_options values=$geostatChoroplethLayersId 
          output=$geostatChoroplethLayersDesc selected=$geostatChoroplethLayerSelected }
          </select>

          The thing is that when a value is chosen and the UpdateMenu submited, I can see through the log file that it executes the methods handlePreDrawing and drawChoropleth which is supposed not to do, am I right?


          Regards,
          Albert




            ----- Original Message ----- 
            From: Oliver Christen 
            To: Albert Casanovas ; cartoweb-users at lists.maptools.org 
            Sent: Tuesday, June 24, 2008 3:06 AM
            Subject: Re: [Cartoweb-users] Geostat update menu without updating map


            Hi
            if the map is updated it means the image plugin is triggered.
            be sure you are triggering the UpdateMenu action and not  UpdateMap or UpdateAll as these actions will trigger the image plugin and the map will be refreshed.
            this is handled in ajaxHandleAction in ClientGeostats.php

            you can know which plugin is answering your action by looking at the content of the JSTraceDebugger windows content, for example:
            Plugins that gave response: location layers images query tables layerReorder bboxHistory cartoMessages 

            regards
            Oliver
              ----- Original Message ----- 
              From: Albert Casanovas 
              To: cartoweb-users at lists.maptools.org 
              Sent: Monday, June 23, 2008 9:22 PM
              Subject: [Cartoweb-users] Geostat update menu without updating map


              Hi,

              I am working with the cloropleth plugin, I have not worked a lot with AJAX. At the moment I need to update the interface SELECTS as a cascade without updating the map until the last SELECT is chosen. Looking at the following Geostat.ajax.js file seems that updating the menu updates the Map also.

              AjaxPlugins.Geostat.Actions = {};

              AjaxPlugins.Geostat.Actions.UpdateMenu =
              AjaxPlugins.Geostat.Actions.UpdateMap =
              AjaxPlugins.Geostat.Actions.UpdateAll = {
                  buildPostRequest: function(argObject) {
                      return AjaxHandler.buildPostRequest();
                  },
                  onBeforeAjaxCall: function(argObject) {
                  },
                  onAfterAjaxCall: function(argObject) {
                  }
              }

              I have done several modifications but the error stays. Could you please give me an advise or suggestion about how show it look like if I do want to UpdateMap only with the UpdateAll option?

              Best Regards,
              Albert Casanovas


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


              _______________________________________________
              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/20080627/a46f1125/attachment.html


More information about the Cartoweb-users mailing list