Mille Gracie Alessandro. I will try that.
Cya Harry Von: Alessandro Ferrucci [mailto:[email protected]] Gesendet: Dienstag, 24. Mai 2011 17:39 An: Budschedl Harald Cc: Marc Jansen; [email protected] Betreff: Re: [OpenLayers-Users] Greetings Hello Harald, You can perform what you've said by giving an ID ('select') to your select box in the HTML and changing document.createElement('select'); with document.getElementById('select'); there may be other cross-browser funkiness to get this to work exactly as you want but that's the gist of it. Hope this helps, Regards, Alessandro Ferrucci On Tue, May 24, 2011 at 6:57 AM, Budschedl Harald <[email protected]<mailto:[email protected]>> wrote: Hey Mark! Thanks alot. If I understand this right, the Select box is being created by your example. But it's a good lead anyway. Now I just have to find a way to change this, so an existing selectbox is filled :) Cya, H. Von: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] Im Auftrag von Marc Jansen Gesendet: Dienstag, 24. Mai 2011 12:46 An: [email protected]<mailto:[email protected]> Betreff: Re: [OpenLayers-Users] Greetings On 24.05.2011 11<tel:24.05.2011%2011>:31, Budschedl Harald wrote: Hi there Hi Harry, I am new to the mailinglist and wanted to shout a quick "Hello world" into the room :) welcome to the mailinglist :-) I am currently working forthe IKT Linz Gmbh, a company which provides IT services for the Magistrate and the Companies of the City of Linz. We started with GIS Systems as early as 1987 and I am in that field of work since 1991. Lately I had more and more "brushes" with the OpenLayers theme and became interested. I am not much of a programmer anymore (I released my last real program about 10 years ago), but did recently start to sniff into JavaScript a bit... ;) I also was at the last FOSSGIS in Germany, where I had the opportunity to attend an ol-workshop, which was very good but too short... ATM I am fiddling around with an OpenLayers page that displays our data and just cracking my head on an "Adress Search"-function that utilizes a selfmade Webservice (which deliveres GeoJSON) using AJAX.I just have to find out how to cram the contents of my JSON Object into the options of my selectbox - if possible without having to dig into things like jquery... I like the "K.I.S.S" motto and really want to keep it simple and stupid. You could iterate over the GeoJSON-object and do sth. like: var s = document.createElement('select'); s.id<http://s.id>='sel'; var o1 = document.createElement('option') var o2 = document.createElement('option') o1.text = "Opt 1"; o2.text = "Opt 2"; s.appendChild(o1); s.appendChild(o2); document.body.appendChild(s); // untested but any of the JavaScript-libraries out there will make this task easier and more-likely to work cross-browser. Regards, Marc Ok, so much for my, myself and my experiments :) Cya on the list! Harry Freundliche Grüße/Regards Harald Budschedl Geodaten Management (Geo) Productmanager, Projectmanager, Consultant IKT Linz GmbH Ein Unternehmen der Stadt Linz 4040 Linz, Hauptstraße 1-5 AUSTRIA Tel. +43 732 7070 4787<tel:%2B43%20732%207070%204787> Fax +43 732 7070 54 4787<tel:%2B43%20732%207070%2054%204787> visit www.linz.at/ikt<http://www.linz.at/ikt> mailto: [email protected]<mailto:[email protected]> ________________________________ Diese Nachricht inklusive aller Anhänge kann vertrauliche Informationen enthalten. Sie ist ausschließlich für die adressierten Personen bestimmt. Das unerlaubte Kopieren sowie die unbefugte Weitergabe sind nicht gestattet. Sollten Sie nicht die richtige Adressatin/der richtige Adressat sein, vernichten Sie den gesamten Inhalt (§ 93 Abs. 4 Telekommunikationsgesetz 2003) und informieren Sie bitte sofort den/die Absender/in. Nähere Regelungen zur elektronischen Kommunikation mit der Stadt Linz finden Sie in den "Allgemeinen Hinweisen und Nutzungsbestimmungen betreffend das E-Government der Stadt Linz (e-linz)" ( http://www.linz.at/images/AGB_egov_2008.pdf ) IKT Linz GmbH, Firmenbuch des Landesgerichtes Linz ++ Firmenbuch-Nummer: 321197z ++ UID-Nummer: ATU64636344 IKT Linz Infrastruktur GmbH, Firmenbuch des Landesgerichtes Linz ++ Firmenbuch-Nummer: 321990s ++ UID-Nummer: ATU64664303 A-4020 Linz, Gruberstraße 42, Tel. +43 732 7070 0<tel:%2B43%20732%207070%200>, Fax: +43 732 7070 54 1555<tel:%2B43%20732%207070%2054%201555>, [email protected]<mailto:[email protected]>, www.linz.at/ikt<http://www.linz.at/ikt> _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.osgeo.org/mailman/listinfo/openlayers-users ________________________________ Diese Nachricht inklusive aller Anhänge kann vertrauliche Informationen enthalten. Sie ist ausschließlich für die adressierten Personen bestimmt. Das unerlaubte Kopieren sowie die unbefugte Weitergabe sind nicht gestattet. Sollten Sie nicht die richtige Adressatin/der richtige Adressat sein, vernichten Sie den gesamten Inhalt (§ 93 Abs. 4 Telekommunikationsgesetz 2003) und informieren Sie bitte sofort den/die Absender/in. Nähere Regelungen zur elektronischen Kommunikation mit der Stadt Linz finden Sie in den "Allgemeinen Hinweisen und Nutzungsbestimmungen betreffend das E-Government der Stadt Linz (e-linz)" ( http://www.linz.at/images/AGB_egov_2008.pdf ) IKT Linz GmbH, Firmenbuch des Landesgerichtes Linz ++ Firmenbuch-Nummer: 321197z ++ UID-Nummer: ATU64636344 IKT Linz Infrastruktur GmbH, Firmenbuch des Landesgerichtes Linz ++ Firmenbuch-Nummer: 321990s ++ UID-Nummer: ATU64664303 A-4020 Linz, Gruberstraße 42, Tel. +43 732 7070 0<tel:%2B43%20732%207070%200>, Fax: +43 732 7070 54 1555<tel:%2B43%20732%207070%2054%201555>, [email protected]<mailto:[email protected]>, www.linz.at/ikt<http://www.linz.at/ikt> _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.osgeo.org/mailman/listinfo/openlayers-users -- Signed, Alessandro Ferrucci ________________________________ Diese Nachricht inklusive aller Anhänge kann vertrauliche Informationen enthalten. Sie ist ausschließlich für die adressierten Personen bestimmt. Das unerlaubte Kopieren sowie die unbefugte Weitergabe sind nicht gestattet. Sollten Sie nicht die richtige Adressatin/der richtige Adressat sein, vernichten Sie den gesamten Inhalt (§ 93 Abs. 4 Telekommunikationsgesetz 2003) und informieren Sie bitte sofort den/die Absender/in. Nähere Regelungen zur elektronischen Kommunikation mit der Stadt Linz finden Sie in den "Allgemeinen Hinweisen und Nutzungsbestimmungen betreffend das E-Government der Stadt Linz (e-linz)" ( http://www.linz.at/images/AGB_egov_2008.pdf ) IKT Linz GmbH, Firmenbuch des Landesgerichtes Linz ++ Firmenbuch-Nummer: 321197z ++ UID-Nummer: ATU64636344 IKT Linz Infrastruktur GmbH, Firmenbuch des Landesgerichtes Linz ++ Firmenbuch-Nummer: 321990s ++ UID-Nummer: ATU64664303 A-4020 Linz, Gruberstraße 42, Tel. +43 732 7070 0, Fax: +43 732 7070 54 1555, [email protected], www.linz.at/ikt
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
