[Cartoweb-users] edit plugin with iexplore

Oliver Christen oliver.christen at camptocamp.com
Tue May 6 03:27:23 EDT 2008


Hi
thinking about your problem, it reminds me something about IE unable to get an input by its name if the input name has a certain syntax, though I dont remember exactly the syntax details.

The problem is in function storeFeatures (in dhtmlInit.js) on line 
var input = eval("myform['edit_feature_" + aFeature.id + "[" + mainmap.editAttributeNames[j] + "]']");

I think i had that problem in a project and it was solved by adding an id to the input when it's being generated in dhtmlEdit.php
this is done by replacing:
var input = createInput(td,
  "edit_feature_" + aFeature.id + "[" + this.editAttributeNames[i] + "]", 
  value, inputtype)
by :
var inputname = "edit_feature_" + aFeature.id + "[" + this.editAttributeNames[i] + "]";
var input = createInput(td, inputname, value, 'text');
input.setAttribute("id", inputname);

and then you can replace the line in dhtmlInit.jd:
var input = eval("myform['edit_feature_" + aFeature.id + "[" + mainmap.editAttributeNames[j] + "]']");
by:
var input = $('edit_feature_' + aFeature.id + '[' + mainmap.editAttributeNames[j] + ']');


but then, this is only a guess, as you never gave me the exact error message.

regards
Oliver
  ----- Original Message ----- 
  From: Asamer Hubert (grafotech) 
  To: Oliver Christen ; cartoweb-users at lists.maptools.org 
  Sent: Monday, May 05, 2008 10:50 AM
  Subject: AW: [Cartoweb-users] edit plugin with iexplore


  Oliver,

  Can you please give me a short description of the changes must be made in "dhtmlEdit.js" to workaround the iexplore-problem.... I know it is not the clean but the dirty way... Or is it better to replace the js-file with the newer cvs-file? I have a running application and do not want to reinstall cartoweb... Thank you for your help!

  Regards

  Hubert


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

  Von: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
  Gesendet: Freitag, 25. April 2008 07:22
  An: Asamer Hubert (grafotech); cartoweb-users at lists.maptools.org
  Betreff: Re: [Cartoweb-users] edit plugin with iexplore

   

  well, the problem is the edition dhtml is partly linked with the main dhtml (where I also had to correct some part linked to edition) so I wouldnt advice you to mix up files, it would almost certainly result is a total mess. But you can easily set up two version of cartoweb on your server without problems. Simply install it in another folder.

   

  as for the javascript error, could you eventualy install IE's script debugger, which gives a little bit more details, usualy enough to trace the error:

  http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en

  the files is named scd10en.exe

  you also have to uncheck the options "Disable script debuggin (IE)" and "Disable script debuggin (other)" in the advanced tab in IE's Internet Options

   

  regards

  Oliver

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

    From: Asamer Hubert (grafotech) 

    To: Oliver Christen ; cartoweb-users at lists.maptools.org 

    Sent: Thursday, April 24, 2008 2:30 PM

    Subject: RE: [Cartoweb-users] edit plugin with iexplore

     

    I am using the stable version 3.4.

    Should i only replace the javascript part of the edit-plugin or is more needed?

     

    My error is (in german): value' ist Null oder kein Object , Zeile 143 Zeichen 9, Code 0

    Thanks...


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

    Von: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
    Gesendet: Donnerstag, 24. April 2008 14:03
    An: Asamer Hubert (grafotech); cartoweb-users at lists.maptools.org
    Betreff: Re: [Cartoweb-users] edit plugin with iexplore

     

    which version of Cartoweb are you using ?

    I have patched a few bugs in the edition's javascript some time ago but only in the CVS version of Cartoweb.

     

    what error do you get exactly ?

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

      From: Asamer Hubert (grafotech) 

      To: cartoweb-users at lists.maptools.org 

      Sent: Thursday, April 24, 2008 1:54 PM

      Subject: [Cartoweb-users] edit plugin with iexplore

       

      Hello list,

      I have a problem with my application's edition plugin. 

      With firefox everything works: 3 different user can edit their own postgis tables. These users have no editor role (custom role names for security views) 

      In Iexplore i get an non-object error when i want to validate my editions.. In a past thread i read about to give every user the editor role. 

      But this works only for one user an not for n users. Has anybody tested cartoweb 3.4 with IE 7 ? Or are there any workarounds for this problem?

      Thanks for any answers

       

      Hubert

       




            Vertraulichkeitshinweis:
            Diese Nachricht und allfaellige angehaengte Dokumente sind vertraulich und nur fuer den/die Adressaten bestimmt.
            Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung
            dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verstaendigen und die Information
            zu vernichten. Fuer Uebermittlungsfehler oder sonstige Irrtuemer bei Uebermittlung besteht keine Haftung.

             
            Confidentiality Note:
            This message and any attached files are confidential and intended solely for the addressee(s). Any publication,
            transmission or other use of the information by a person or entity other than the intended addressee is prohibited.
            If you receive this in error please contact the sender and delete the material. The sender does not accept liability
            for any errors or omissions as a result of the transmission.
           


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

      _______________________________________________
      Cartoweb-users mailing list
      Cartoweb-users at lists.maptools.org
      http://lists.maptools.org/mailman/listinfo/cartoweb-users

     




          Vertraulichkeitshinweis:
          Diese Nachricht und allfaellige angehaengte Dokumente sind vertraulich und nur fuer den/die Adressaten bestimmt.
          Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung
          dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verstaendigen und die Information
          zu vernichten. Fuer Uebermittlungsfehler oder sonstige Irrtuemer bei Uebermittlung besteht keine Haftung.

           
          Confidentiality Note:
          This message and any attached files are confidential and intended solely for the addressee(s). Any publication,
          transmission or other use of the information by a person or entity other than the intended addressee is prohibited.
          If you receive this in error please contact the sender and delete the material. The sender does not accept liability
          for any errors or omissions as a result of the transmission.


         

     






        Vertraulichkeitshinweis:
        Diese Nachricht und allfaellige angehaengte Dokumente sind vertraulich und nur fuer den/die Adressaten bestimmt.
        Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung
        dieser Information nicht gestattet. In diesem Fall bitten wir, den Absender zu verstaendigen und die Information
        zu vernichten. Fuer Uebermittlungsfehler oder sonstige Irrtuemer bei Uebermittlung besteht keine Haftung.

         
        Confidentiality Note:
        This message and any attached files are confidential and intended solely for the addressee(s). Any publication,
        transmission or other use of the information by a person or entity other than the intended addressee is prohibited.
        If you receive this in error please contact the sender and delete the material. The sender does not accept liability
        for any errors or omissions as a result of the transmission.


       
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080506/51cb3197/attachment-0001.html


More information about the Cartoweb-users mailing list