[Cartoweb-users] Solution: edit plugin with iexplore
Asamer Hubert (grafotech)
hubert.asamer at grafotech.at
Fri Jun 20 05:33:09 EDT 2008
Hello List,
i forgot to report the solution regarding the edit-plugin in
iexplore.... Here it is...
Regards
Hubert
________________________________
Von: Oliver Christen [mailto:oliver.christen at camptocamp.com]
Gesendet: Dienstag, 27. Mai 2008 11:18
An: Asamer Hubert (grafotech)
Betreff: Re: [Cartoweb-users] edit plugin with iexplore
hem, edit is not loaded in loadPlugins in your client.ini, was that
intended ?
about your problem:
the default javascript is not intended to be used with select element.
You must add an id to the select so the validation script can access the
element in IE.
in dhtmlInit.js on line 142 :
var input = xGetElementById('edit_feature_' + aFeature.id + '[' +
mainmap.editAttributeNames[j] + ']');
(my fault for telling you to use the $( ... ) notation, I assumed you
had ajax enabled, meaning the prototype.js library would have been
loaded and the $(..) notation would have been available)
and in dhtmlEdit.js on line 542 :
input.id = "edit_feature_" + aFeature.id + "[" +
this.editAttributeNames[i] + "]";
refresh your browser cache
on a side note, I would advice you to override all the files in your
project and not in the main Cartoweb folder, because the day you want to
upgrade or performe maintenance, you will have files scatered everywere
and it will cause you problems.
to overrides files in a project, you only need to recreate the folder
hierarchy inside your project. for example for the file dhtmlEdit.js,
put it in cartoweb3\projects\demo_gt\plugins\edit\htdocs\js\
run the cw3setup.php --install once you are done, so the files get
linked/copied correctly, see
http://www.cartoweb.org/doc_head/docbook/xhtml/dev.newplugin.html#dev.ne
wplugin.adapting for details
regards
Oliver
________________________________
Von: Oliver Christen [mailto:oliver.christen at camptocamp.com]
Gesendet: Dienstag, 27. Mai 2008 09:42
An: Asamer Hubert (grafotech)
Betreff: Re: [Cartoweb-users] edit plugin with iexplore
Hi,
how do I access the edit tool in your project?
----- 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 26, 2008 1:15 PM
Subject: AW: [Cartoweb-users] edit plugin with iexplore
Hello,
My Problem with the edit-plugin still remains. I changed
both js files, but there is no effect... I also inspected the
application with DOM-Inspector, all Tabledata (TD) values for the
created edit feature have no id's! I am new to javascript, maybe that is
the problem *gg*
Best Regards
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080620/cf4acf6e/attachment-0001.html
More information about the Cartoweb-users
mailing list