IE error with stable release

1 message Options
Embed this post
Permalink
hernangomez-2

IE error with stable release

Reply Threaded More More options
Print post
Permalink
I want to use mapbuilder in a productive environments with a working geoserver, so I'm trying with the stable version (1.0.1).

But i have my first problem with IE after made a basic client. I have a problem with the locator, it works ok in firefox but in IE there's a javascript error (Line 83 in ModelBase.js).

I added  'alert(sUri);' after the line 82, and in firefox it shows firts 'contextMain.xml' and later 'contextLocator.xml'. In IE it's ok the first but the second time it shows '[object]'. I debug it with VS and showed that it takes the DIV container instead the URL.

This is my config.xml (is in /mapbuilder/demo/atlas) :

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<MapbuilderConfig xmlns="http://mapbuilder.sourceforge.net/mapbuilder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" id="contextEditorDemoConfig" xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder ./lib/schemas/config.xsd">
  <models>
    <Context id="mainMap">
      <defaultModelUrl>contextMain.xml</defaultModelUrl>
      <widgets>
        <MapPane id="widgetmainMap">
          <htmlTagId>mainMapPane</htmlTagId>
          <mapContainerId>mainMapContainer</mapContainerId>
        </MapPane>
        <AoiBoxDHTML id="aoiBoxMain">
          <htmlTagId>mainMapPane</htmlTagId>
          <mapContainerId>mainMapContainer</mapContainerId>
          <lineColor>#FF0000</lineColor>
          <lineWidth>2</lineWidth>
          <crossSize>15</crossSize>
        </AoiBoxDHTML>
      </widgets>
      <tools>
        <AoiMouseHandler id="mainAoi"/>
        <DragPanHandler id="mainDragPan">
          <enabled>false</enabled>
        </DragPanHandler>
        <MouseClickHandler id="mainMouseClick"/>
      </tools>
    </Context>
    <Context id="locator">
      <defaultModelUrl>contextLocator.xml</defaultModelUrl>
      <widgets>
        <MapPane id="locatorWidget">
          <htmlTagId>locatorMap</htmlTagId>
          <targetModel>mainMap</targetModel>
          <mapContainerId>contenedorLocalizador</mapContainerId>
        </MapPane>
        <AoiBoxDHTML id="locatorAoi">
          <htmlTagId>locatorMap</htmlTagId>
          <mapContainerId>locatorContainer</mapContainerId>
          <lineColor>#E9A02F</lineColor>
          <lineWidth>1</lineWidth>
          <crossSize>15</crossSize>
        </AoiBoxDHTML>
      </widgets>
      <tools>
        <AoiMouseHandler id="locatorMouse"/>
        <ZoomToAoi id="locatorZoomToAoi">
          <targetModel>mainMap</targetModel>
        </ZoomToAoi>
      </tools>
    </Context>
  </models>
  <widgets>
    <ZoomIn id="zoomIn">
      <targetModel>mainMap</targetModel>
      <buttonBar>mainButtonBar</buttonBar>
      <mouseHandler>mainAoi</mouseHandler>
      <class>RadioButton</class>
      <selected>true</selected>
      <enabledSrc>/images/ZoomInEnable.png</enabledSrc>
      <disabledSrc>/images/ZoomInDisable.png</disabledSrc>
    </ZoomIn>
    <ZoomOut id="zoomOut">
      <targetModel>mainMap</targetModel>
      <mouseHandler>mainAoi</mouseHandler>
      <buttonBar>mainButtonBar</buttonBar>
      <class>RadioButton</class>
      <enabledSrc>/images/ZoomOutEnable.png</enabledSrc>
      <disabledSrc>/images/ZoomOutDisable.png</disabledSrc>
    </ZoomOut>
    <DragPan id="dragPan">
      <targetModel>mainMap</targetModel>
      <mouseHandler>mainDragPan</mouseHandler>
      <buttonBar>mainButtonBar</buttonBar>
      <class>RadioButton</class>
      <enabledSrc>/images/PanEnable.png</enabledSrc>
      <disabledSrc>/images/PanDisable.png</disabledSrc>
    </DragPan>
    <Reset id="reset">
      <targetModel>mainMap</targetModel>
      <buttonBar>mainButtonBar</buttonBar>
      <class>Button</class>
      <disabledSrc>/images/ResetExtentDisable.png</disabledSrc>
    </Reset>
  </widgets>
  <skinDir>../../lib/skin/default</skinDir>
</MapbuilderConfig>

Note: contextMain.xml and contextLocator.xml are equals but in contextLocator.xml there's only 1 layer.

Thankx.