A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > Ecshop > ECSHOP:bug 解决 XMlHttpRequest status:[500] Unknow status错

ECSHOP:bug 解决 XMlHttpRequest status:[500] Unknow status错

时间:2015-04-07 15:46作者:zhao人气:2416

/admin/templates/top.htm 的这个文件中

{insert_scripts files=”../js/transport.js”}和 </head>

之间的代码删除 (包括 {insert_scripts files=”../js/transport.js”} )

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

<script type=”text/javascript”>

onload = function()

{

Ajax.call(‘index.php?is_ajax=1&act=license’,”, start_sendmail_Response, ‘GET’, ‘JSON’);

}

/**

* 帮助系统调用

*/

function web_address()

{
var ne_add = parent.document.getElementById(‘main-frame’);

var ne_list = ne_add.contentWindow.document.getElementById(’search_id’).innerHTML;

ne_list.replace(‘-’, ”);

var arr = ne_list.split(‘-’);

window.open(‘help.php?al=’+arr[arr.length - 1],’_blank’);

}

/**

* 授权检测回调处理

*/

function start_sendmail_Response(result)

{

// 运行正常

if (result.error == 0)

{

var str = ”;

if (result['content']['auth_str'])

{

str = ‘<a href=”javascript:void(0);” target=”_blank”>’ + result['content']['auth_str'];

if (result['content']['auth_type'])

{

str += ‘[' + result['content']['auth_type'] + ‘]’;

}

str += ‘</a> ‘;

}

document.getElementById(‘license-div’).innerHTML = str;

}

}

function modalDialog(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’);

}

}

function ShowToDoList()

{

try

{

var mainFrame = window.top.frames['main-frame'];

mainFrame.window.showTodoList(adminId);

}

catch (ex)

{

}

}

{/literal}

var adminId = “{$admin_id}”;

</script>

标签ECSHOP,bug,解决,XMlHttpRequest,s

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号