3 Replies Latest reply on Aug 22, 2007 1:32 PM by Sergey Smirnov

    gmap firefox problem

    Mikhail Aheichyk Newbie


      I am using gmap component in my webpage and have some problems with it.
      In IE6 and Opera9.23 it works fine with no errors, but when I use
      firefox gmap component is not rendered. It is blank.

      firefox error console says:
      "Error: uncaught exception: [Exception... "Object cannot be created in
      this context" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)"
      location: "http://maps.google.com/maps?file=api&v=2&key=ABQ...wp Line: 1"]"
      Key is truncated.

      And the second error message:
      "Error: GMap2 is not defined
      Source File: http://localhost:8080/test/a4j.res/script/gmap.js.seam
      Line: 12"

      The second error points to the 4th line of javascript code:

      1: function __initGmapdiv(mapVar, clid,warningMessage ) {
      2: var mapdiv = document.getElementById(clid);
      3: if (GBrowserIsCompatible()) {
      4: window[mapVar] = new GMap2(mapdiv);
      5: mapdiv.map = window[mapVar];
      6: } else {
      7: mapdiv.innerHTML=warningMessage;
      8: }
      9: }

      I found that there is no some javascript code to render google map
      which defenitly should be.

      The trick is that this firefox works perfect when I navigate gmap richfaces

      richfaces3.0.1 + ajax4jsf-1.1.1+facelets + jboss-seam2.0.0 + jboss-4.2.0.GA.

      Could you express your ideas on this problem, please