EasyUI Forum

General Category => Bug Report => Topic started by: zh_CN on March 24, 2014, 12:16:24 AM



Title: IE10 tree can suport local file loading remote json,but firefox can't
Post by: zh_CN on March 24, 2014, 12:16:24 AM
Hi!
    My trubble flow:
Local path:file:///E:/EasyUI/index.html
But file in Server is ok :http://shop.ss001.cn/ui/index.html

Code:
...
  //实例化树形菜单
  $("#tree").tree({
    //data:treeData,
    url:'http://shop.ss001.cn/ui/tree.php',
    method:'get',
    lines:true,
    animate:true,
    onClick:function(node){
      if(node.attributes){
        Open(node.text,node.attributes.url);
      }
    }
  });
...



IE10: ok
(http://shop.ss001.cn/ui/error/1.jpg)

Firefox38: error
(http://shop.ss001.cn/ui/error/2.jpg)

(http://shop.ss001.cn/ui/error/3.jpg)


Title: Re: IE10 tree can suport local file loading remote json,but firefox can't
Post by: stworthy on March 24, 2014, 06:28:15 PM
This topic have discussed your problem.
http://stackoverflow.com/questions/5469440/jquery-ajax-request-from-local-filesystem-windows-file


Title: Re: IE10 tree can suport local file loading remote json,but firefox can't
Post by: zh_CN on March 24, 2014, 07:54:14 PM
This topic have discussed your problem.
http://stackoverflow.com/questions/5469440/jquery-ajax-request-from-local-filesystem-windows-file

Oh, thainks. I go to see it. My englisth is poor~  ;D


Title: Re: IE10 tree can suport local file loading remote json,but firefox can't
Post by: zh_CN on March 24, 2014, 08:13:39 PM
This topic have discussed your problem.
http://stackoverflow.com/questions/5469440/jquery-ajax-request-from-local-filesystem-windows-file


Ok, I't works! Thanks!