begin process at 2012 05 28 10:23:36
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Formulaire

 > GEOLOCALISATION VIA GOOGLE MAP. COMPOSANT EXTJS 3.3.1

GEOLOCALISATION VIA GOOGLE MAP. COMPOSANT EXTJS 3.3.1


 Information sur la source

Note :
Aucune note
Catégorie :Formulaire Classé sous :geolocalisation, google map, ExtJS, javascript, coordonnees gps Niveau :Débutant Date de création :28/04/2011 Date de mise à jour :29/04/2011 10:18:25 Vu / téléchargé :3 945 / 454

Auteur : morphey_83

Ecrire un message privé
Commentaire sur cette source (4)
Ajouter un commentaire et/ou une note

 Description

Cliquez pour voir la capture en taille normale
Les possibilités:
- Géolocalisation via un popup
- Drag & Drop du pointeur pour le positionnement précis
- Présélection de la position (adresse, commune, département , région, pays, lat, lng)
- Modification manuel de l'adresse trouver sur la carte ( Il arrive par fois que l'adresse fournis par Google n'est pas correct. Ce composant permets de rectifier l'adresse manuellement)
- Auto-zoom en fonction des résultats
- Supporté par: IE >= 8 ; FF, Chrome(conseillé ;))

Source

  • Ext.namespace('JSF');
  • Ext.namespace('JSF.Components');
  • JSF.Components.JSF_Geo = Ext.extend(Ext.Window, {
  • title: 'Recherche et localisation',
  • width: 860,
  • modal: true,
  • closeAction: 'hide',
  • closable: true,
  • resizable: false,
  • //ressources
  • litEmptyText: 'Champ de recherche',
  • litSearch: 'Rechercher',
  • _initialised: false,
  • defaultAdsres: undefined,
  • defaultPoint: new google.maps.LatLng(46.227638, 2.213749), // FRANCE
  • defaultZoom: 5,
  • value: undefined,
  • setValue: function (v) {
  • var me = this;
  • var emptyV = {
  • adr: '', commune: '', cp: '', departement: '', region: '', pays: '', lat: '', lng: '',
  • update: function (v) {
  • Ext.apply(this, v);
  • },
  • toString: function () {
  • var res = '';
  • res += this.adr;
  • if (this.commune && this.commune != '') res += (res == '' ? '' : ', ') + this.commune;
  • if (this.cp && this.cp != '') res += (res == '' ? '' : ', ') + this.cp;
  • if (this.departement && this.departement != '') res += (res == '' ? '' : ', ') + this.departement;
  • if (this.region && this.region != '') res += (res == '' ? '' : ', ') + this.region;
  • if (this.pays && this.pays != '') res += (res == '' ? '' : ', ') + this.pays;
  • return res;
  • },
  • positionExist: function () {
  • return this.lat != undefined && this.lat != ''
  • && this.lng != undefined && this.lng != ''
  • },
  • addresExist: function () {
  • return (this.adr != undefined && this.adr != '')
  • || (this.commune != undefined && this.commune != '')
  • || (this.departement != undefined && this.departement != '')
  • || (this.region != undefined && this.region != '')
  • || (this.commune != undefined && this.commune != '')
  • || (this.cp != undefined && this.cp != '')
  • || (this.pays != undefined && this.pays != '')
  • },
  • getZoom: function () {
  • if (this.adr != "") return 16;
  • else if (this.commune != "") return 12;
  • else if (this.departement != "") return 9;
  • else if (this.region != "") return 8;
  • else if (this.pays != "") return 6;
  • else return undefined;
  • },
  • getLatLng: function () {
  • return this.positionExist() ? (new google.maps.LatLng(this.lat, this.lng)) : undefined;
  • },
  • parseFromGInfo: function (gInfo) {
  • this.parsePositionFromGInfo(gInfo);
  • this.parseAddressFromGInfo(gInfo);
  • },
  • parsePositionFromGInfo: function (gInfo) {
  • this.lat = gInfo.geometry.location.lat();
  • this.lng = gInfo.geometry.location.lng();
  • },
  • parseAddressFromGInfo: function (gInfo) {
  • if (gInfo.address_components) {
  • // parse adresse
  • this.adr = this.commune = this.cp = this.region = this.departement = this.pays = "";
  • for (var i = 0; i < gInfo.address_components.length; i++) {
  • var itemAdr = gInfo.address_components[i];
  • var type = itemAdr.types[0];
  • switch (type) {
  • case 'street_number':
  • this.adr = itemAdr.long_name + (this.adr == '' ? '' : ', ') + this.adr;
  • break;
  • case 'route':
  • this.adr += (this.adr == '' ? '' : ', ') + itemAdr.long_name;
  • break;
  • case 'locality':
  • this.commune = itemAdr.long_name;
  • break;
  • case 'postal_code':
  • this.cp = itemAdr.long_name;
  • break;
  • case 'administrative_area_level_1':
  • this.region = itemAdr.long_name;
  • break;
  • case 'administrative_area_level_2':
  • this.departement = itemAdr.long_name;
  • break;
  • case 'country':
  • this.pays = itemAdr.long_name;
  • break;
  • }
  • }
  • }
  • }
  • };
  • emptyV.update(v || {});
  • this.value = emptyV;
  • this.refresh();
  • },
  • refresh: function(){
  • var me = this;
  • if (this._initialised == true) {
  • if (this.value.positionExist()) {
  • // si la position est definis
  • if (!this.value.addresExist()) this.getAddress(function () {
  • me.MarkerRefresh();
  • });
  • else this.MarkerRefresh();
  • } else if (this.value.addresExist()) {
  • // si l'adresse n'est pas vide
  • this.getLocation(this.value.toString());
  • } else {
  • //si ni l'adresse ni coordonées
  • this.MarkerRefresh();
  • }
  • }
  • },
  • getValue: function () {
  • return this.value;
  • },
  • initComponent: function () {
  • var me = this;
  • this.setValue(this.value);
  • this.html = '<div id="' + this.id + "_gmap_content" + '" style="height:500px;"></div>';
  • this.tbar = [
  • '->',
  • { xtype: 'textfield', emptyText: this.litEmptyText, width: this.width - 50, id: me.id + '_txtSearch',
  • listeners: {
  • specialkey: function (f, e) {
  • if (e.getKey() == e.ENTER) {
  • var txtSearch = Ext.getCmp(me.id + '_txtSearch');
  • var str = txtSearch.getValue();
  • me.getLocation(str, true);
  • }
  • }
  • }
  • },
  • { xtype: 'spacer', width: 5 },
  • {
  • xtype: 'button',
  • iconCls: 'btnEditSearch',
  • title: this.litSearch,
  • margins: '1 2 1 2',
  • handler: function () {
  • var txtSearch = Ext.getCmp(me.id + '_txtSearch');
  • var str = txtSearch.getValue();
  • this.getLocation(str, true);
  • },
  • scope: this
  • }
  • ],
  • JSF.Components.JSF_Geo.superclass.initComponent.call(this);
  • },
  • listeners: {
  • 'afterrender': function (me) {
  • var contenerHtml = document.getElementById(this.id + "_gmap_content");
  • // positionement par defaut
  • var latlng = this.value.getLatLng() || this.defaultPoint;
  • var zoom = this.value.getZoom() ||this.defaultZoom;
  • var myOptions = {
  • center: latlng,
  • zoom: zoom,
  • mapTypeId: google.maps.MapTypeId.ROADMAP
  • };
  • this.map = new google.maps.Map(contenerHtml, myOptions);
  • this._initialised = true;
  • this.refresh();
  • }
  • },
  • // positionement de pine
  • MarkerRefresh: function () {
  • var me = this;
  • // nettoyage
  • if (this.marker) {
  • if (this.marker.infowindow) {
  • this.marker.infowindow.close();
  • this.marker.infowindow = undefined;
  • }
  • this.marker.setMap(null);
  • this.marker = undefined;
  • }
  • var latlng = this.value.getLatLng();
  • // marker position
  • if (latlng != undefined) {
  • //creation marker
  • this.marker = new google.maps.Marker({
  • position: latlng,
  • draggable: true
  • });
  • //CLICK
  • google.maps.event.addListener(this.marker, 'click', function (e) {
  • if (me.marker.infowindow == undefined) me.showInfoWindow();
  • else me.closeInfoWindow();
  • });
  • //DRAG END
  • google.maps.event.addListener(this.marker, 'dragend', function (pos) {
  • if (me.value) {
  • me.value.lat = pos.latLng.lat();
  • me.value.lng = pos.latLng.lng();
  • me.getAddress(function (result) { me.showInfoWindow(); });
  • }
  • });
  • //DRAG START
  • google.maps.event.addListener(this.marker, 'dragstart', function () {
  • if (me.marker.infowindow) { me.closeInfoWindow(); }
  • });
  • this.marker.setMap(this.map);
  • this.map.setOptions({ center: latlng, zoom: (this.value.getZoom() || this.defaultZoom) });
  • this.showInfoWindow();
  • } else {
  • this.map.setOptions({ center:this.defaultPoint, zoom: this.defaultZoom });
  • }
  • },
  • // recherche positionement de la carte par adresse
  • getLocation: function (adr, bReplace) {
  • var me = this;
  • var adrStr = adr ? adr : this.value.toString();
  • if (adrStr == '') {
  • this.setValue();
  • return;
  • }
  • var geocoder = new google.maps.Geocoder();
  • geocoder.geocode({ 'address': adrStr }, function (results, status) {
  • if (status == google.maps.GeocoderStatus.OK) {
  • var res = results[0];
  • if (bReplace == true) me.value.parseFromGInfo(res);
  • else me.value.parsePositionFromGInfo(res);
  • me.MarkerRefresh();
  • } else {
  • //erreur
  • me.setValue();
  • }
  • });
  • },
  • getAddress: function (handlerResult) {
  • var me = this;
  • var latlng = this.value.getLatLng();
  • var geocoder = new google.maps.Geocoder();
  • geocoder.geocode({ 'latLng': latlng }, function (results, status) {
  • if (status == google.maps.GeocoderStatus.OK) {
  • var res = results[0];
  • me.value.parseAddressFromGInfo(res);
  • if (handlerResult && res) handlerResult(res);
  • } else {
  • // erreur
  • }
  • });
  • },
  • valideLocalisation: function () {
  • if (this._currentGeoFrmInfo != undefined) {
  • var frm = this._currentGeoFrmInfo.getForm();
  • if (frm) this.value.update(frm.getFieldValues())
  • this.fireEvent("change", this.value);
  • this.hide();
  • }
  • },
  • removeLocalisation: function () {
  • this.setValue();
  • this.fireEvent("change", this.value);
  • this.hide();
  • },
  • /****************/
  • // Show / Close
  • closeInfoWindow: function () {
  • if (this.marker && this.marker.infowindow) {
  • this.marker.infowindow.close();
  • this.marker.infowindow = undefined;
  • }
  • },
  • // Affichage Info adresse
  • showInfoWindow: function () {
  • if (this.marker) {
  • var windowW = 300;
  • var labelW = 90;
  • var padding = 15;
  • var me = this;
  • this.closeInfoWindow();
  • var content = "<div id='" + this.id + "_GeoFrmInfoContainer' style='width:" + windowW + "px; height:160px'></div>";
  • this.marker.infowindow = new google.maps.InfoWindow({ content: content });
  • google.maps.event.addListener(this.marker.infowindow, 'domready', function () {
  • me._currentGeoFrmInfo = new Ext.form.FormPanel({
  • renderTo: me.id + '_GeoFrmInfoContainer',
  • border: true,
  • autoScroll: false,
  • labelWidth: labelW,
  • bodyStyle: " padding:2px; padding-top:20px;",
  • items: [
  • { xtype: 'textfield', name: 'adr', value: me.value.adr, fieldLabel: 'Adresse', width: (windowW - labelW - padding) },
  • { xtype: 'textfield', name: 'commune', value: me.value.commune, fieldLabel: 'Commune', width: (windowW - labelW - padding) },
  • { xtype: 'textfield', name: 'cp', value: me.value.cp, fieldLabel: 'Code postal', width: (windowW - labelW - padding) },
  • { xtype: 'label', html: me.value.lat.toString().substring(0, 12) + " / " + me.value.lng.toString().substring(0, 12), fieldLabel: 'Lat / lng', width: (windowW - labelW - padding) }
  • ],
  • bbar: [
  • { text: "Supprimer", handler: me.removeLocalisation, scope: me },
  • '->',
  • { text: "Valider", handler: me.valideLocalisation, scope: me }
  • ]
  • });
  • });
  • google.maps.event.addDomListener(this.marker.infowindow, 'closeclick', function () { me.marker.infowindow = undefined; });
  • this.marker.infowindow.open(this.map, this.marker);
  • }
  • }
  • });
  • Ext.reg('JSF_Geo', JSF.Components.JSF_Geo);
Ext.namespace('JSF');
Ext.namespace('JSF.Components');

JSF.Components.JSF_Geo = Ext.extend(Ext.Window, {

    title: 'Recherche et localisation',
    width: 860,
    modal: true,
    closeAction: 'hide',
    closable: true,
    resizable: false,

    //ressources
    litEmptyText: 'Champ de recherche',
    litSearch: 'Rechercher',

    _initialised: false,

    defaultAdsres: undefined,
    defaultPoint: new google.maps.LatLng(46.227638, 2.213749), // FRANCE
    defaultZoom: 5,

    value: undefined,

    setValue: function (v) {
        var me = this;

        var emptyV = {
            adr: '', commune: '', cp: '', departement: '', region: '', pays: '', lat: '', lng: '',

            update: function (v) {
                Ext.apply(this, v);
            },

            toString: function () {
                var res = '';
                res += this.adr;
                if (this.commune && this.commune != '') res += (res == '' ? '' : ', ') + this.commune;
                if (this.cp && this.cp != '') res += (res == '' ? '' : ', ') + this.cp;
				if (this.departement && this.departement != '') res += (res == '' ? '' : ', ') + this.departement;
				if (this.region && this.region != '') res += (res == '' ? '' : ', ') + this.region;
                if (this.pays && this.pays != '') res += (res == '' ? '' : ', ') + this.pays;
                return res;
            },

            positionExist: function () {
                return this.lat != undefined && this.lat != ''
                    && this.lng != undefined && this.lng != ''
            },

            addresExist: function () {
                return (this.adr != undefined && this.adr != '')
                      || (this.commune != undefined && this.commune != '')
					  || (this.departement != undefined && this.departement != '')
					  || (this.region != undefined && this.region != '')
					  || (this.commune != undefined && this.commune != '')
                      || (this.cp != undefined && this.cp != '')
                      || (this.pays != undefined && this.pays != '')

            },

            getZoom: function () {
                if (this.adr != "") return 16;
                else if (this.commune != "") return 12;
                else if (this.departement != "") return 9;
                else if (this.region != "") return 8;
                else if (this.pays != "") return 6;
                else return undefined;
            },

            getLatLng: function () {
                return this.positionExist() ? (new google.maps.LatLng(this.lat, this.lng)) : undefined;
            },

            parseFromGInfo: function (gInfo) {
                this.parsePositionFromGInfo(gInfo);
                this.parseAddressFromGInfo(gInfo);
            },

            parsePositionFromGInfo: function (gInfo) {

                this.lat = gInfo.geometry.location.lat();
                this.lng = gInfo.geometry.location.lng();
            },

            parseAddressFromGInfo: function (gInfo) {
                if (gInfo.address_components) {
                    // parse adresse
                    this.adr = this.commune = this.cp = this.region = this.departement = this.pays = "";

                    for (var i = 0; i < gInfo.address_components.length; i++) {
                        var itemAdr = gInfo.address_components[i];
                        var type = itemAdr.types[0];

                        switch (type) {
                            case 'street_number':
                                this.adr = itemAdr.long_name + (this.adr == '' ? '' : ', ') + this.adr;
                                break;

                            case 'route':
                                this.adr += (this.adr == '' ? '' : ', ') + itemAdr.long_name;
                                break;

                            case 'locality':
                                this.commune = itemAdr.long_name;
                                break;

                            case 'postal_code':
                                this.cp = itemAdr.long_name;
                                break;

                            case 'administrative_area_level_1':
                                this.region = itemAdr.long_name;
                                break;

                            case 'administrative_area_level_2':
                                this.departement = itemAdr.long_name;
                                break;

                            case 'country':
                                this.pays = itemAdr.long_name;
                                break;
                        }
                    }
                }
            }
        };

        emptyV.update(v || {});
        this.value = emptyV;
		this.refresh();
    },
	
	refresh: function(){
		var me = this;
		if (this._initialised == true) {

            if (this.value.positionExist()) {
                // si la position est definis

                if (!this.value.addresExist()) this.getAddress(function () {
                    me.MarkerRefresh();
                });
                else this.MarkerRefresh();

            } else if (this.value.addresExist()) {
                // si l'adresse n'est pas vide
                this.getLocation(this.value.toString());
            } else {
                //si ni l'adresse ni coordonées 
				this.MarkerRefresh();
            }

        }
	},

    getValue: function () {
        return this.value;
    },


    initComponent: function () {
        var me = this;
        this.setValue(this.value);


        this.html = '<div id="' + this.id + "_gmap_content" + '" style="height:500px;"></div>';


        this.tbar = [
            '->',
            { xtype: 'textfield', emptyText: this.litEmptyText, width: this.width - 50, id: me.id + '_txtSearch',
                listeners: {
                    specialkey: function (f, e) {
                        if (e.getKey() == e.ENTER) {
                            var txtSearch = Ext.getCmp(me.id + '_txtSearch');
                            var str = txtSearch.getValue();
                            me.getLocation(str, true);
                        }
                    }
                }
            },
            { xtype: 'spacer', width: 5 },
            {
                xtype: 'button',
                iconCls: 'btnEditSearch',
                title: this.litSearch,
                margins: '1 2 1 2',
                handler: function () {
                    var txtSearch = Ext.getCmp(me.id + '_txtSearch');
                    var str = txtSearch.getValue();
                    this.getLocation(str, true);
                },
                scope: this
            }
        ],

        JSF.Components.JSF_Geo.superclass.initComponent.call(this);
    },


    listeners: {
        'afterrender': function (me) {

            var contenerHtml = document.getElementById(this.id + "_gmap_content");
			
            // positionement par defaut
            var latlng = this.value.getLatLng() || this.defaultPoint;
            var zoom = this.value.getZoom() ||this.defaultZoom;

            var myOptions = {
                center: latlng,
                zoom: zoom,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };

            this.map = new google.maps.Map(contenerHtml, myOptions);
            this._initialised = true;
			this.refresh();
        }
    },


    // positionement de pine
    MarkerRefresh: function () {

        var me = this;

        // nettoyage
        if (this.marker) {

            if (this.marker.infowindow) {
                this.marker.infowindow.close();
                this.marker.infowindow = undefined;
            }
            this.marker.setMap(null);
            this.marker = undefined;
        }

        var latlng = this.value.getLatLng();

        // marker position
        if (latlng != undefined) {

            //creation marker
            this.marker = new google.maps.Marker({
                position: latlng,
                draggable: true
            });

            //CLICK
            google.maps.event.addListener(this.marker, 'click', function (e) {
                if (me.marker.infowindow == undefined) me.showInfoWindow();
                else me.closeInfoWindow();
            });

            //DRAG END
            google.maps.event.addListener(this.marker, 'dragend', function (pos) {
                if (me.value) {
                    me.value.lat = pos.latLng.lat();
                    me.value.lng = pos.latLng.lng();
                    me.getAddress(function (result) { me.showInfoWindow(); });

                }
            });

            //DRAG START
            google.maps.event.addListener(this.marker, 'dragstart', function () {
                if (me.marker.infowindow) { me.closeInfoWindow(); }
            });

            this.marker.setMap(this.map);
            this.map.setOptions({ center: latlng, zoom: (this.value.getZoom() || this.defaultZoom) });
            this.showInfoWindow();

        } else {
            this.map.setOptions({ center:this.defaultPoint, zoom: this.defaultZoom });
        }
    },


    // recherche positionement de la carte par adresse
    getLocation: function (adr, bReplace) {
        var me = this;
        var adrStr = adr ? adr : this.value.toString();

        if (adrStr == '') {
            this.setValue();
            return;
        }

        var geocoder = new google.maps.Geocoder();

        geocoder.geocode({ 'address': adrStr }, function (results, status) {
            if (status == google.maps.GeocoderStatus.OK) {

                var res = results[0];
                if (bReplace == true) me.value.parseFromGInfo(res);
                else me.value.parsePositionFromGInfo(res);
                me.MarkerRefresh();

            } else {
                //erreur
                me.setValue();
            }
        });
    },

    getAddress: function (handlerResult) {

        var me = this;
        var latlng = this.value.getLatLng();


        var geocoder = new google.maps.Geocoder();
        geocoder.geocode({ 'latLng': latlng }, function (results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
                var res = results[0];
                me.value.parseAddressFromGInfo(res);
                if (handlerResult && res) handlerResult(res);

            } else {
                // erreur
            }
        });

    },

    valideLocalisation: function () {
        if (this._currentGeoFrmInfo != undefined) {
            var frm = this._currentGeoFrmInfo.getForm();
            if (frm) this.value.update(frm.getFieldValues())
            this.fireEvent("change", this.value);
            this.hide();
        }
    },

    removeLocalisation: function () {
        this.setValue();
        this.fireEvent("change", this.value);
        this.hide();
    },


    /****************/
    //  Show / Close

    closeInfoWindow: function () {
        if (this.marker && this.marker.infowindow) {
            this.marker.infowindow.close();
            this.marker.infowindow = undefined;
        }
    },


    // Affichage Info adresse
    showInfoWindow: function () {

        if (this.marker) {
            var windowW = 300;
            var labelW = 90;
			var padding = 15;
			
            var me = this;
            this.closeInfoWindow();

            var content = "<div id='" + this.id + "_GeoFrmInfoContainer' style='width:" + windowW + "px; height:160px'></div>";
            this.marker.infowindow = new google.maps.InfoWindow({ content: content });

            google.maps.event.addListener(this.marker.infowindow, 'domready', function () {



                me._currentGeoFrmInfo = new Ext.form.FormPanel({
                    renderTo: me.id + '_GeoFrmInfoContainer',
                    border: true,
                    autoScroll: false,
                    labelWidth: labelW,
                    bodyStyle: " padding:2px; padding-top:20px;",
                    items: [
                        { xtype: 'textfield', name: 'adr', value: me.value.adr, fieldLabel: 'Adresse', width: (windowW - labelW - padding) },
                        { xtype: 'textfield', name: 'commune', value: me.value.commune, fieldLabel: 'Commune', width: (windowW - labelW - padding) },
                        { xtype: 'textfield', name: 'cp', value: me.value.cp, fieldLabel: 'Code postal', width: (windowW - labelW - padding) },
                        { xtype: 'label', html: me.value.lat.toString().substring(0, 12) + " / " + me.value.lng.toString().substring(0, 12), fieldLabel: 'Lat / lng', width: (windowW - labelW - padding) }
                    ],
                    bbar: [
                    { text: "Supprimer", handler: me.removeLocalisation, scope: me },
                    '->',
                    { text: "Valider", handler: me.valideLocalisation, scope: me }
                    ]
                });
            });

            google.maps.event.addDomListener(this.marker.infowindow, 'closeclick', function () { me.marker.infowindow = undefined; });

            this.marker.infowindow.open(this.map, this.marker);

        }
    }
});

Ext.reg('JSF_Geo', JSF.Components.JSF_Geo);

 Conclusion

prérequis:
- ExtJS 3.3.1
- IE >= 8 ou FF ou Chrome(conseillé ;))

 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip


 Historique

28 avril 2011 19:21:27 :
Description mis à jour
29 avril 2011 10:18:27 :
ajout source

 Sources de la même categorie

Source avec Zip Source avec une capture FORMULAIRE TABLEAU par vic511
Source avec Zip Source avec une capture FORMULAIRE DYNAMIQUE par Niidhogg
Source avec Zip Source avec une capture CONTRAINTE DE SAISIE SUR CHAMPS INPUT par ryosama
SELECTS DÉPENDANTS PRÉ-CHARGÉS D'UNE SEULE OPTION par phm
Source avec Zip Source avec une capture BOITE DE DIALOGUE MODALE DE SÉLECTION D'UNE LISTE D'ICONES par JJDai

 Sources en rapport avec celle ci

Source avec Zip Source avec une capture FORMULAIRE TABLEAU par vic511
Source avec Zip Source avec une capture SUBDIVISER LE RÉSULTAT D'UNE RECHERCHE EN PAGES par kimmp
Source avec Zip Source avec une capture CALCULATRICE HEURE par m22001111
Source avec Zip Source avec une capture COPIER DU TEXTE par m22001111
Source avec Zip ROTATION D'UNE IMAGE, ANIMATION par william voirol

Commentaires et avis

Commentaire de morphey_83 le 30/04/2011 11:46:05

Pourquoi ce code n'est pas accessible par une recherche sur le site ? ( j'ai essayé les mots-clés configuré )

Commentaire de morphey_83 le 04/05/2011 09:55:10

Aucun bug ? ... ou aucun intérêt ? :)

Commentaire de nebenobo le 17/05/2011 16:58:23

Mon poulet, moi je la trouve très bien ton appli. Je m'y connais pas assez pour noter et/ou critiquer ton script, mais a priori ça marche. Par contre, je comprends pas très bien l'intérêt des "présélections" du début, ni celui de valider la popup (peut-être est-ce à nous d'adapter le script pour en faire qq chose ?).
Pour ce qui est de la recherche par mots-clefs, moi c'est pareil je ne trouve pas mon script, bizarre. C'est possible que Google le trouve plus facilement.

Commentaire de morphey_83 le 17/05/2011 17:17:55

Ce code peut être utilisé dans un formulaires ou une fiche-détails (ex.: Fiche utilisateur, granule adresse).
Donc on peut déjà avoir l'info de localisation. d'ou l'intérêt du "pre-set".

Le bouton "Valider" sert en fait à appliquer les modifications d'adresse car il peut être différent à celui de google ( Google se trompe souvent sur le numéro, bât, ... )

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

lien javascript [ par ilimo ] bonjour....peut-on rendre un lien actif et inactif avec javascript ?ex : a et b sont deux liens html...quand je clique sur a, la page liée à a s'af select case en javascript [ par Juju ] je cherche une sorte un select case mais en javascript, pouvez vous me donner la syntaxe MerciJuju javascript dans formulaire acrobat [ par domi ] "Envoie par mèl du contenu du formulaire"j'ai écrit deux lignes simple en javascript dans un formulaire acrobat, il fonctionne bien avec Acrobat "prog Lien javascript [ par yoyo ] Salut tout le monde,g un petit pb,g un lien qui est une image et quand je clique dessus, je lance une fonction javascript.Sur IE, pas de probleme mais Colle pour les pros du javascript [ par Manu ] Bonjour,je propose aux passionnés de javascript de relever un défi. J'ai téléchargé les fichiers pour un menu en DHTML/JavaScript (fichiers .css et Javascript & unload ?????????? [ par Léa ] Hello Utilisant javascript, la fonction onUnload me permet correctement de capturer l'evenement de fermeture de ma fenetre... sauf que la touche F5 ou fonction javascript [ par phil ] Bonjourvoici mon pb: function changeFrame(frame1,frame2){ top.nomdeframe1.location=frame1 top.nomdeframe2.location=frame2 comment doit-on écrire ce sc Besoin urgent d'une fonction Javascript [ par David ] Bonjour,Voici le context:J'utilise des JSP dans lesquelles j'insert des tags avec des listes déroulantes en import Java.J'ai un champ text dans lequel versions javascript [ par arthur ] je cherche une récapitulatif contenant les fonctionnalités de chaque version de javascript de 1.0 à 1.3 ou 1.4.merci


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 5,429 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales