jquery - DNN Ajax IE Error -
i trying create dotnetnuke module data web api service , trying hit module gets error(access denied) in ajax call in ie. in firefox works perfectly. , if not in dotnetnuke website works in either firefox or ie. here ajax i'm having problem with:
var rep = (function () { var json = null; $.support.cors = true; $.ajax({ type: "get", async: false, global: false, url: "http://localhost:50611/testrep.svc/offices/2", datatype: "json", success: function (data) { json = data; alert("done"); }, error: function (jqxhr, teststatus, errorthrown) { jqxhr.status + textstatus + errorthrown); } }); //ajax return json; });
error message ajax(0errorerror: access denied.)
i tried xdomainrequest , got same-ish error (microsoft jscript runtime error: access denied.) appreciated.
it caused syntax error. take out " before http
in line:
url: ""http://localhost:50611/testrep.svc/offices/2",
Comments
Post a Comment