IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

IGN API Géoportail Discussion :

Firefox Event Error


Sujet :

IGN API Géoportail

  1. #1
    Membre à l'essai
    Inscrit en
    Septembre 2009
    Messages
    21
    Détails du profil
    Informations forums :
    Inscription : Septembre 2009
    Messages : 21
    Points : 14
    Points
    14
    Par défaut Firefox Event Error
    I am getting this error in Firefox 3.6.3 only relating to line 2148 in GeoportalExtended.js

    2148var D=C._eventCacheID;

    Can anybody help with the meaning?

    if(F.addEventListener){F.addEventListener(E,D,B)
    2146}else{if(F.attachEvent){F.attachEvent("on"+E,D)
    2147}}},stopObservingElement:function(B){var C=OpenLayers.Util.getElement(B);
    2148var D=C._eventCacheID;
    2149this._removeElementObservers(OpenLayers.Event.observers[D])
    2150},_removeElementObservers:function(F){if(F){for(var C=F.length-1;
    2151C>=0;

  2. #2
    Expert confirmé
    Homme Profil pro
    Ingénieur cartographe
    Inscrit en
    Avril 2009
    Messages
    3 173
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur cartographe
    Secteur : Service public

    Informations forums :
    Inscription : Avril 2009
    Messages : 3 173
    Points : 4 224
    Points
    4 224
    Par défaut
    Citation Envoyé par ALD2355 Voir le message
    I am getting this error in Firefox 3.6.3 only relating to line 2148 in GeoportalExtended.js

    2148var D=C._eventCacheID;

    Can anybody help with the meaning?

    if(F.addEventListener){F.addEventListener(E,D,B)
    2146}else{if(F.attachEvent){F.attachEvent("on"+E,D)
    2147}}},stopObservingElement:function(B){var C=OpenLayers.Util.getElement(B);
    2148var D=C._eventCacheID;
    2149this._removeElementObservers(OpenLayers.Event.observers[D])
    2150},_removeElementObservers:function(F){if(F){for(var C=F.length-1;
    2151C>=0;
    Could we have a pointer to a web page to check ?
    Are you still under 1.0beta4 cause there are only 97 lignes in JS now --1 line for the whole code and 96 for licenses--) ?

  3. #3
    Membre à l'essai
    Inscrit en
    Septembre 2009
    Messages
    21
    Détails du profil
    Informations forums :
    Inscription : Septembre 2009
    Messages : 21
    Points : 14
    Points
    14
    Par défaut Page Error Ref
    Ref: www.sysmaps.co.uk/sysmaps_ign.html

    Firefox also does not obey SetCenterAtLonLat on this page.

    Thanks

  4. #4
    Expert confirmé
    Homme Profil pro
    Ingénieur cartographe
    Inscrit en
    Avril 2009
    Messages
    3 173
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Val de Marne (Île de France)

    Informations professionnelles :
    Activité : Ingénieur cartographe
    Secteur : Service public

    Informations forums :
    Inscription : Avril 2009
    Messages : 3 173
    Points : 4 224
    Points
    4 224
    Par défaut
    Citation Envoyé par ALD2355 Voir le message
    Could you add this in your page :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
        /**
         * Method: stopObservingElement
         * Given the id of an element to stop observing, cycle through the
         *   element's cached observers, calling stopObserving on each one,
         *   skipping those entries which can no longer be removed.
         *
         * parameters:
         * elementParam - {DOMElement || String}
         */
        OpenLayers.Event.stopObservingElement= function(elementParam) {
            var element = OpenLayers.Util.getElement(elementParam);
            if (element) {
                var cacheID = element._eventCacheID;
    
                if (cacheID) {
                    this._removeElementObservers(OpenLayers.Event.observers[cacheID]);
                }
            }
        };
    this bug fix has been put in 1.0 release.


    Citation Envoyé par ALD2355 Voir le message
    Firefox also does not obey SetCenterAtLonLat on this page.
    Not sure if it is related, but when an error occurs FF seems to stop (usually you get a world view !)

    I checked on FF 3.6.3 under W$ XP SP3, I also got:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    $("privacyLink_text") is null

  5. #5
    Membre à l'essai
    Inscrit en
    Septembre 2009
    Messages
    21
    Détails du profil
    Informations forums :
    Inscription : Septembre 2009
    Messages : 21
    Points : 14
    Points
    14
    Par défaut Extra Code Added
    I have added the extra code to the initial routine with no difference. Firebug does not provide any errors and the code is ignored.

    The map will not centre on a position using:

    myMap.getMap().setCenterAtLonLat(gps.trackPoint.position.longitude, gps.trackPoint.position.latitude, zoomlevel);

    or

    myMap.getMap().setCenter(pos, zoomlevel);

    Thanks

  6. #6
    Membre à l'essai
    Inscrit en
    Septembre 2009
    Messages
    21
    Détails du profil
    Informations forums :
    Inscription : Septembre 2009
    Messages : 21
    Points : 14
    Points
    14
    Par défaut Beta Version Error
    I have also changed the version to v1.0 from 1.0Beta4 and this clears the errors.

    The maps collection is at www.sysmaps.com.

    Thanks for your help.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. stopper les event clavier firefox avec une alert
    Par ReiVon dans le forum Général JavaScript
    Réponses: 11
    Dernier message: 05/08/2008, 16h15
  2. ajax dynamic list event is not defined sous firefox
    Par djanke dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 22/02/2008, 16h31
  3. problème event.keyCode Firefox
    Par Tdeny dans le forum Général JavaScript
    Réponses: 8
    Dernier message: 05/07/2006, 17h48
  4. [ eclipse ] [ plugin ] [ JNI ] Unhandled event loop error
    Par Jean-Philippe Shields dans le forum Eclipse Java
    Réponses: 9
    Dernier message: 28/11/2005, 18h05
  5. event.keyCode undefined sous FireFox
    Par dupin40 dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 17/03/2005, 11h15

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo