当浏览器模式和文档模式在IE8中不同时,Jvector Map无法正常工作

时间:2015-05-26 15:22:13

标签: javascript jquery ajax internet-explorer-8 jvectormap

我目前正在运行Jvector Map,它运行良好。我已经检查过Internet Explorer的运行情况。我正在使用IE8。最后测试我的任务我已经设置了浏览器模式8和文档模式7.然后运行代码显示错误这样?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E)
Timestamp: Tue, 26 May 2015 13:47:52 UTC


Message: Expected identifier, string or number
Line: 290
Char: 13
Code: 0
URI: http://dotnetportfolio.com/project/Map/tests/basic1.html

请帮帮我?如何修复此错误?提前谢谢

代码:

<!DOCTYPE html>
<html>
<head>
  <title>Country Footprint</title>
  <link rel="stylesheet" media="all" href="../jquery-jvectormap.css"/>
  <script src="assets/jquery-1.8.2.js"></script>
  <script src="../jquery-jvectormap.js"></script>
  <script src="../lib/jquery-mousewheel.js"></script>

  <script src="../src/jvectormap.js"></script>

  <script src="../src/abstract-element.js"></script>
  <script src="../src/abstract-canvas-element.js"></script>
  <script src="../src/abstract-shape-element.js"></script>

  <script src="../src/svg-element.js"></script>
  <script src="../src/svg-group-element.js"></script>
  <script src="../src/svg-canvas-element.js"></script>
  <script src="../src/svg-shape-element.js"></script>
  <script src="../src/svg-path-element.js"></script>
  <script src="../src/svg-circle-element.js"></script>
  <script src="../src/svg-image-element.js"></script>
  <script src="../src/svg-text-element.js"></script>

 <script src="../src/vml-element.js"></script>
  <script src="../src/vml-group-element.js"></script>
  <script src="../src/vml-canvas-element.js"></script>
  <script src="../src/vml-shape-element.js"></script>
  <script src="../src/vml-path-element.js"></script>
  <script src="../src/vml-circle-element.js"></script>
  <script src="../src/vml-image-element.js"></script>

  <script src="../src/map-object.js"></script>
  <script src="../src/region.js"></script>
  <script src="../src/marker.js"></script>

  <script src="../src/vector-canvas.js"></script>
  <script src="../src/simple-scale.js"></script>
  <script src="../src/ordinal-scale.js"></script>
  <script src="../src/numeric-scale.js"></script>
  <script src="../src/color-scale.js"></script>
  <script src="../src/legend.js"></script>
  <script src="../src/data-series.js"></script>
  <script src="../src/proj.js"></script>
  <script src="../src/map.js"></script>

  <script src="assets/jquery-jvectormap-world-mill-en.js"></script>
  <script>
    jQuery.noConflict();
    jQuery(function(){
      var $ = jQuery;
      $('#focus-single').click(function(){
        $('#map1').vectorMap('set', 'focus', {region: 'AU', animate: true});
      });
      $('#focus-multiple').click(function(){
        $('#map1').vectorMap('set', 'focus', {regions: ['AU', 'JP'], animate: true});
      });
      $('#focus-coords').click(function(){
        $('#map1').vectorMap('set', 'focus', {scale: 7, lat: 35, lng: 33, animate: true});
      });
      $('#focus-init').click(function(){
        $('#map1').vectorMap('set', 'focus', {scale: 1, x: 0.5, y: 0.5, animate: true});
      });
      $('#map1').vectorMap({
        map: 'world_mill_en',
        panOnDrag: true,
        focusOn: {
          x: 0.5,
          y: 0.5,
          scale: 1,
          animate: true
        },
        series: {
          regions: [{
            scale: ['#688FA0'],
            normalizeFunction: 'polynomial',
            values: {



 //"DZ": 158.97,
     // "AZ":1.1,
      "AG": 1.1,
     // "AE":7.54,
     // "AO":5.6,
      "AR": 351.02,
      //"AM":3.96,
      "AU": 1219.72,
      "AT": 366.26,
      //"AF":3.96,
     // "AL":3.96,
      //"BS": 7.54,
      "BH": 21.73,
     // "BI":4.45,
      "BB": 3.96,
      //"BY": 52.89,
      "BE": 461.33,
     // "BT":7.54,
     // "BD":7.54,     
      // "BW":9.3,

    //  "BA": 16.2,
    //  "BF":4.6,
     // "BR": 2023.53,
           }
      }]
    },
    onRegionTipShow: function(e, label, code){
    var code=label.html();


  switch(code){
        case  'Argentina' :
        label.html("<div style='height:129px;width:296px;Length:98px'><b>Country</b>:&nbsp  Argentina<br/><b>Category</b>:&nbsp  Approved<br/><b>PDP GCO Region</b>:&nbsp  South America<br/><b>Comments</b>:&nbsp  Have had delays with regulatory submissions/approvals. As long as advanced planning is taken into consideration this country should be okay.</br><b>CCL</b>:&nbsp Mariana Bodmer</div>");
        break;

        case  'Australia' :
        label.html("<div style='height:78px;Length:88px'><b>Country</b>:&nbsp  Australia<br/><b>Category</b>:&nbsp  Approved<br/><b>PDP GCO Region</b>:&nbsp  ROW</br><b>Comments</b>:&nbsp  None <br/><b>CCL</b>:&nbsp Michelle Barrington</div>");
        break;

        case  'Belgium' :
        label.html("<div style='height:78px;Length:78px'><b>Country</b>:&nbsp  Belgium<br/><b>Category</b>:&nbsp  Approved<br/><b>PDP GCO Region</b>:&nbsp  Europe</br><b>Comments</b>:&nbsp  None<br/><b>CCL</b>:&nbsp Marleen Van Kerckhoven</div>");
        break;

        case  'Brazil' :
        label.html("<div style='height:148px;width:490px;Length:198px'><b>Country</b>:&nbsp  Brazil<br/><b>Category</b>:&nbsp  Requires Approval<br/><b>PDP GCO Region</b>:&nbsp  South America<br/><b>Comments</b>:&nbsp  There are concerns with country stipulations regarding provisions and rights to study medication, following protocol treatment, regardless of commercialization. Also issues from the regulatory governance.A  Advanced planning in place surrounding the CTA and country setup in Brazil, as it can take close to 12 months.</div>");
        break;

default :
        label.html(
        "<div style='height:15px;font-size: 11px;font-family: Verdana, sans-serif;padding: 1px;white-space: pre-line'>" + code + "</div>");
        break;
        }   
},
      });
    })
  </script>

0 个答案:

没有答案