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

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

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

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

    1. <script type=”text/javascript”>
    2. onload = function()
    3. {
    4. Ajax.call(‘index.php?is_ajax=1&act=license’,”, start_sendmail_Response, ‘GET’, ‘JSON’);
    5. }
    6. function web_address()
    7. {
    8. var ne_add = parent.document.getElementByIdx_x(‘main-frame’);
    9. var ne_list = ne_add.contentWindow.document.getElementByIdx_x(’search_id’).innerHTML;
    10. ne_list.replace(‘-’, ”);
    11. var arr = ne_list.split(‘-’);
    12. window.open(‘help.php?al=’+arr[arr.length – 1],’_blank’);
    13. }
    14. function start_sendmail_Response(result)
    15. {
    16. // 运行正常
    17. if (result.error == 0)
    18. {
    19. var str = ”;
    20. if (result[‘content’][‘auth_str’])
    21. {
    22. str = ‘<a href=”javascript:void(0);” target=”_blank”>’ + result[‘content’][‘auth_str’];
    23. if (result[‘content’][‘auth_type’])
    24. {
    25. str += ‘[‘ + result[‘content’][‘auth_type’] + ‘]’;
    26. }
    27. str += ‘</a> ‘;
    28. }
    29. document.getElementByIdx_x(‘license-div’).innerHTML = str;
    30. }
    31. }
    32. function modalDialog(url, name, width, height)
    33. {
    34. if (width == undefined)
    35. {
    36. width = 400;
    37. }
    38. if (height == undefined)
    39. {
    40. height = 300;
    41. }
    42. if (window.showModalDialog)
    43. {
    44. window.showModalDialog(url, name, ‘dialogWidth=’ + (width) + ‘px; dialogHeight=’ + (height+5) + ‘px; status=off’);
    45. }
    46. else
    47. {
    48. x = (window.screen.width – width) / 2;
    49. y = (window.screen.height – height) / 2;
    50. 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’);
    51. }
    52. }
    53. function ShowToDoList()
    54. {
    55. try
    56. {
    57. var mainFrame = window.top.frames[‘main-frame’];
    58. mainFrame.window.showTodoList(adminId);
    59. }
    60. catch (ex)
    61. {
    62. }
    63. }
    64. {/literal}
    65. var adminId = “{$admin_id}”;
    66. </script>
© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论