ajax网络错误00002efd,jquery - Network Error 0x2efd, Could not complete the operation due to error 00002e...

I have seen most of the post regarding this but I can't seem to find the correct resolution.

I have 2 Solution, Bioman and PowerRangers, both have a Code Module , a javascript gets trigger on dropdownlist change to load a table (as shown below)

4cTWY.png

BIOMAN uses Ajax to get data using Index Action on CodesController

function ajaxCall(obj) {

var retdata = {};

$.ajax({

dataType: "json",

type: "POST",

contentType: 'application/json; charset=utf-8',

data: JSON.stringify(obj),

async: false,

processData: false,

cache: false,

success: function (data) {

retdata = data;

},

error: function (xhr) {

alert("error");

}

});

return retdata;

}

Then calls a javascript to load the table

function drawCodesTable(codes) {

var sHTML = [];

if (codes == null) return;

if (codes.length > 0) {

$("#dvCreateMenu").css("display", "");

sHTML.push("

sHTML.push("");

sHTML.push("

");

sHTML.push("

Code Id");

sHTML.push("

Code Name");

sHTML.push("

Code Display");

sHTML.push("

Code Group");

sHTML.push("

Active Ind");

sHTML.push("

Action");

sHTML.push("

");

sHTML.push("

");

sHTML.push("

");

for (var x = 0; x < codes.length; x++) {

sHTML.push("

");

sHTML.push("

" + codes[x].CodeId + "");

sHTML.push("

" + codes[x].CodeName + "");

sHTML.push("

" + codes[x].Display + "");

sHTML.push("

" + codes[x].CodeGroupName + "");

sHTML.push("

" + codes[x].ActiveInd + "");

sHTML.push("

");

sHTML.push("Edit");

sHTML.push(" Delete");

sHTML.push("

");

sHTML.push("

");

}

sHTML.push("

");

sHTML.push("

")

}

}

POWERRANGERS calls the load function and calls a Load Action from CodesController which then returns a Partial View to load the same table structure

This is the View Structue of POWERRANGERS

O2LgY.png

$("#dvCodes").empty()

.load("/Codes/Load?id=" + $(this).val() + "&timestamp=" + new Date().getTime());

vy7F1.png

BIOMAN works fine on both local Network and outside Network.

However, when POWERANGER is access outside Network the dropdownlist items shows which means that database is accessible from View but it doesn't render the table on the Partial View, Here are the error I got on different browsers

Chrome

Gb5Bj.png

Internet Explorer

HfaFy.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值