Skip to main content
edited title
Link

Arcgis javascript api not working in IE 11 (js api 1.6)

edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Source Link

Arcgis javascript api not working in IE 11

I have a html with ArcGIS js api, it working in lower version (say IE 7) but not working in IE11,. Is it because my js api version is too low? How can I make it work?

The related code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head  >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Data Creation</title>
<link rel="stylesheet" href="readXML.css" type="text/css" />
<script type="text/javascript" language="JavaScript" src="CALENDAR\CalendarControl.js"></script>
<script type="text/javascript" language="JavaScript" src="Scripts\JScript_webpage.js"></script>
<link href="CALENDAR\CalendarControl.css" rel="stylesheet"  type="text/css" />
<link rel="stylesheet" type="text/css" 
href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.6/js/dojo/dijit/themes/tundra/tundra.css"/>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/

+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/?v=1.6" type="text/javascript"></script>
<script type="text/vbscript" language="VBScript" src="Scripts\VBScript_webpage.vbs"></script>
<script type="text/javascript" language="JavaScript">

function Submit_Click(objForm)
{

if(Validate(objForm))
{
  if (document.data.radio[0].checked)
    {
        Data_NEW();
        objForm.reset();
    }
    else if (document.data.radio[1].checked)
    {
        Data_EDIT();
        objForm.reset();
    }
}
}

function SaveAsDraft_Click(objForm)
{

if(Validate(objForm))
{
 SaveAsDraft();
 objForm.reset();

}
}

function TestVerify(objf)
{
  var path = objf.elements["Data_file"]
  var filepath = path.value;
  filepath = ChangethePath(filepath)
  Verify(objf,filepath);
}  

The function of Submit_click and SaveAsDraft_click totally no response. Any advice?