[Cartoweb-users] probem with the search plugin

Oliver Christen oliver.christen at camptocamp.com
Tue Aug 19 02:18:56 EDT 2008


Hi

it means the javascript file containing the definition of AjaxPlugins.Search is not available.
the file is most likely Search.ajax.js and you need to manualy add a link to this file in your cartoclient.tpl in the <head>..</head> section. Add it at the end. There are several existing javascript link in the <head> that you can use as examples.

once it's done, clear the template cache via the cw3setup --clean and also clear your browser cache.

regards
Oliver
  ----- Original Message ----- 
  From: Claire Chastagnol 
  To: Oliver Christen 
  Sent: Monday, August 18, 2008 5:53 PM
  Subject: Re: [Cartoweb-users] probem with the search plugin


  Hi,

  I don't know why but the debugger wasn't working very well on firefox, I tried on internet explorer, and now I have the error messages.

  The debugger says:

  --- Action Search.DoIt triggered ---
  Error: AjaxHandler.doAction(): object AjaxPlugins.Search not found. AJAX action aborted.

  What does it mean?
  Many thanks.
  Claire





    > Message du 18/08/08 13:52
    > De : "Oliver Christen" 
    > A : "Claire Chastagnol" 
    > Copie à : 
    > Objet : Re: [Cartoweb-users] probem with the search plugin
    > 
    >  
    first check that you config parameters for the search are correct.


    also you need to be sure an ajax action is triggered.

    you should see some lines in the JSTrace debugger after you click on the search button, you can check if the right ajax action has been called or not.


    if you dont see any ajax action being triggered, check if ajax is correctly enabled in your client.ini, then verify the action called when on the search submit button is correct. after that it is a matter of adding some alert in the java-script to see if the ajax query is correctly set or not.


    if the ajax action is correctly triggered and the query is ok, verify on the php side if the parameters received are correct and that the sql query is ok, also by adding some print/print_r in the code.


    regards

    Oliver

      ----- Original Message ----- 

      From: Claire Chastagnol 

      To: Oliver Christen 

      Sent: Monday, August 18, 2008 1:19 PM

      Subject: Re: [Cartoweb-users] probem with the search plugin


      > 

      Hi oliver,
      > 
      > Thanks for the answer.
      > My problem is that no results are returned when I do the search.
      > Something happens when I click on the search button apparently, the sand timer appears, but the map is just reloaded and nothing else.
      > I don't have any other message on my debugger.
      > 
      > What could it be?
      > Thanks
      > Claire
      > 
      > 


      > 
      > 
      > 
      > 
        > Message du 18/08/08 12:16
        > > De : "Oliver Christen" 
        > > A : "Claire Chastagnol" , cartoweb-users at lists.maptools.org
        > > Copie à : 
        > > Objet : Re: [Cartoweb-users] probem with the search plugin
        > > 
        > >  
        Hi


        These are not error, simply warning telling you some (optional) elements of the template have not been found and hence not updated.

        They are absolutly not related to the search plugin. 


        What problem do you have with the search plugin ?


        regards

        Oliver

          ----- Original Message ----- 

          From: Claire Chastagnol 

          To: cartoweb-users at lists.maptools.org 

          Sent: Monday, August 18, 2008 11:36 AM

          Subject: [Cartoweb-users] probem with the search plugin


          > > 

          Hi everybody,
          > > 
          > > I'm trying to use the search plugin but I have some kind of a problem.
          > > 
          > > My debugger says:
          > > Initiating actions
          > > Ajaxhandler.attachAction():attaching action: Location.Pan to element id:pan_n...
          > > Warning: element pan_n does not exist
          > > Ajaxhandler.attachAction():attaching action: Location.Pan to element id:pan_nw...
          > > Warning: element pan_nw does not exist
          > > Ajaxhandler.attachAction():attaching action: Location.Pan to element id:pan_w...
          > > Warning: element pan_w does not exist
          > > ......
          > > 
          > > 
          > > What does this mean?
          > > Tanks very much.
          > > 
          > > Claire
          > > 

          > > 


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

          > > 

          _______________________________________________
          > > 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/20080819/8c4319f2/attachment-0001.html


More information about the Cartoweb-users mailing list