我自己试我自己的好的。你的就不清楚了,哈哈,检查下兼容性测试。
问题在script_ajax.js中Post函数Out了。- function ajaxpost(formid, func, timeout) {
- showloading();
- if(ajaxpostHandle != 0) {
- return false;
- }
- var ajaxframeid = 'ajaxframe';
- var ajaxframe = $(ajaxframeid);
- if(ajaxframe == null) {
- if (is_ie && !is_opera && is_ie < 9) {
- ajaxframe = document.createElement("<iframe name='" + ajaxframeid + "' id='" + ajaxframeid + "'></iframe>");
- } else {
- ajaxframe = document.createElement("iframe");
- ajaxframe.name = ajaxframeid;
- ajaxframe.id = ajaxframeid;
- }
- ajaxframe.style.display = 'none';
- $('append_parent').appendChild(ajaxframe);
- }
- $(formid).target = ajaxframeid;
- $(formid).action = $(formid).action + '&inajax=1';
- ajaxpostHandle = [formid, func, timeout];
- if(ajaxframe.attachEvent) {
- ajaxframe.detachEvent ('onload', ajaxpost_load);
- ajaxframe.attachEvent('onload', ajaxpost_load);
- } else {
- document.removeEventListener('load', ajaxpost_load, true);
- ajaxframe.addEventListener('load', ajaxpost_load, false);
- }
- $(formid).submit();
- return false;
- }
复制代码 |