ECSHOP 出现 XMlHttpRequest status:[500] Unknow status 的解决方法

时间:2021-05-02

ECSHOP出现 XMlHttpRequest status:[500] Unknow status 这个错误

把/admin/templates/top.htm 这个文件中{insert_scripts files=”../js/transport.js”}和之间的代码删除

也就是将下面这段代码删除...

  • <scripttype=”text/javascript”>
  • onload=function()
  • {
  • Ajax.call(‘index.php?is_ajax=1&act=license’,”,start_sendmail_Response,‘GET’,‘JSON’);
  • }
  • functionweb_address()
  • {
  • varne_add=parent.document.getElementByIdx_x(‘main-frame’);
  • varne_list=ne_add.contentWindow.document.getElementByIdx_x(’search_id’).innerHTML;
  • ne_list.replace(‘-’,”);
  • vararr=ne_list.split(‘-’);
  • window.open(‘help.php?al=’+arr[arr.length-1],’_blank’);
  • }
  • functionstart_sendmail_Response(result)
  • {
  • //运行正常
  • if(result.error==0)
  • {
  • varstr=”;
  • if(result['content']['auth_str'])
  • {
  • str=‘<ahref=”javascript:void(0);”target=”_blank”>’+result['content']['auth_str'];
  • if(result['content']['auth_type'])
  • {
  • str+=‘['+result['content']['auth_type']+‘]’;
  • }
  • str+=‘</a>‘;
  • }
  • document.getElementByIdx_x(‘license-div’).innerHTML=str;
  • }
  • }
  • functionmodalDialog(url,name,width,height)
  • {
  • if(width==undefined)
  • {
  • width=400;
  • }
  • if(height==undefined)
  • {
  • height=300;
  • }
  • if(window.showModalDialog)
  • {
  • window.showModalDialog(url,name,‘dialogWidth=’+(width)+‘px;dialogHeight=’+(height+5)+‘px;status=off’);
  • }
  • else
  • {
  • x=(window.screen.width–width)/2;
  • y=(window.screen.height–height)/2;
  • window.open(url,name,‘height=’+height+’,width=’+width+’,left=’+x+’,top=’+y+’,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes’);
  • }
  • }
  • functionShowToDoList()
  • {
  • try
  • {
  • varmainFrame=window.top.frames['main-frame'];
  • mainFrame.window.showTodoList(adminId);
  • }
  • catch(ex)
  • {
  • }
  • }
  • {/literal}
  • varadminId=“{$admin_id}”;
  • </script>
  • 声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

    相关文章