AW: [Cartoweb-users] edit plugin with iexplore

Asamer Hubert (grafotech) hubert.asamer at grafotech.at
Mon May 19 07:44:27 EDT 2008


Hello,

Some questions again...I'm trying to download the cvs version (to solve
the iexplore problem) of Cartoweb 3.4.0. I am using TortoiseCVS on
win32. The given cvs-string (cvsroot) on the cartoweb homepage does not
work on my client. Are there any weblinks to the cvs version (daily
packages) or something else?

Regards

Hubert

________________________________

Von: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
Gesendet: Dienstag, 06. Mai 2008 13:58
An: Asamer Hubert (grafotech); cartoweb-users at lists.maptools.org
Betreff: Re: [Cartoweb-users] edit plugin with iexplore

 

the problem is the same, the element can not be accessed. if you do a
alert(typeOf(input)) you will get an "undefined".

 

so you should check in Firefox if the inputs of the edit form have an id
set, using either Firebug or DOMInspector.

If not, then check you have added the modification in hdtmlEdit.js and
refreshed your browser cache.

 

regards

Oliver

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

	From: Asamer Hubert (grafotech)
<mailto:hubert.asamer at grafotech.at>  

	To: Oliver Christen <mailto:oliver.christen at camptocamp.com>  ;
cartoweb-users at lists.maptools.org 

	Sent: Tuesday, May 06, 2008 12:53 PM

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

	 

	Oliver,

	I changed the js files following your instructions.... now i get
an iexplore-error at line 141 (the line i changed in dhtmlinit.js)  -
error: object expected. 

	Any ideas? 

	Regards

	Hubert

	 

	----------------My dhtmlInit.js file (only the storefeatures
function):---------------------

	 

	storeFeatures = function() {

	  for (var i=0;i < mainmap.currentLayer.features.length; i++) {

	    var aFeature = mainmap.currentLayer.features[i];

	    if (typeof(mainmap.editAttributeNames) != 'undefined') {

	      for (var j = 0; j < mainmap.editAttributeNames.length;
j++) {

	        if (mainmap.editAttributeTypes[j] == "")

	            continue;

	        var input = $('edit_feature_' + aFeature.id + '[' +
mainmap.editAttributeNames[j] + ']');

	        if (!validateFormInput(mainmap.editAttributeTypes[j],
input.value)) {

	          return false;

	        }

	      } 

	    }

	    if (aFeature.operation != 'undefined') {

	      // store geometry

	      createInput(myform, "edit_feature_" + aFeature.id +
"[WKTString]", aFeature.getWKT(), 'hidden');

	      // store operation

	      createInput(myform, "edit_feature_" + aFeature.id +
"[operation]", aFeature.operation, 'hidden');

	    }

	  }

	  return true;

	};

	 

	----------------My dhtmledit.js file (part from editTableAddRow
function):-----------------------

	 

	else {

	  var inputname = "edit_feature_" + aFeature.id + "[" +
this.editAttributeNames[i] + "]";

	  var input = createInput(td, inputname, value, 'text');

	  input.setAttribute("id", inputname);

	 

	 

	 

	
________________________________


	Von: Asamer Hubert (grafotech) 
	Gesendet: Dienstag, 06. Mai 2008 10:17
	An: 'Oliver Christen'
	Betreff: AW: [Cartoweb-users] edit plugin with iexplore

	 

	 

	 

	Hi,

	Now i've installed the script debugger... The error message is:
A Runtime Error has occured- do you wish to debug? Line: 142 Error:
'Value is null or not an object' ..... When i go into the script
debugger it points me direct to the code part you sent me (storeFeatures
function)  ... Line 142 is: ---->if
(!validateFormInput(mainmap.editAttributeTypes[j], input.value)) {
<----- i think that's the problem; will try to follow your
recommondations you sent me before. Thanks.

	Best Regards

	Hubert

	
________________________________


	Von: Oliver Christen [mailto:oliver.christen at camptocamp.com] 
	Gesendet: Dienstag, 06. Mai 2008 09:27
	An: Asamer Hubert (grafotech); cartoweb-users at lists.maptools.org
	Betreff: Re: [Cartoweb-users] edit plugin with iexplore

	 

	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)
<mailto:hubert.asamer at grafotech.at>  

		To: Oliver Christen
<mailto:oliver.christen at camptocamp.com>  ;
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-4
569-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)
<mailto:hubert.asamer at grafotech.at>  

			To: Oliver Christen
<mailto:oliver.christen at camptocamp.com>  ;
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)
<mailto:hubert.asamer at grafotech.at>  

				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.

		 

	 




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/20080519/d834c93b/attachment-0001.html


More information about the Cartoweb-users mailing list