Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Cross domain IE errorCross domain IE error
Previous
 
Next
New Post
7/25/2013 3:26 PM
 

So I am trying to create a module that will get data from a Web Api service and I am trying to hit it from my module it gets an error(access is denied) in the ajax call but only in IE.  I Firefox it works perfectly.  And if it is just in a website it works in either Firefox or IE. Here is the ajax I'm having a 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;
done");
},
error: function (jqXHR, testStatus, errorThrown) {
jqXHR.status + textStatus + errorThrown);
}
}); //ajax


return json;

});

 Error message from the ajax(0errorError: Access is denied.)

I also tried XDomainRequest and got the same error (Microsoft JScript runtime error: Access is denied.) Any help would be greatly appreciated.

 
New Post
7/26/2013 5:22 AM
 

It does not look valid js to me.

success is set to an anonymous function. In that function...

json =data;

... looks Ok...

 done");

...does not.

Am I missing something?


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/26/2013 9:44 AM
 

done");

sorry it must have lost the alert part when copying somehow.

 
New Post
7/26/2013 11:33 AM
 
also can you move this to Development and Extensions > Building Extensions>modules
 
New Post
7/30/2013 11:28 AM
 

It is just an alert, it is suppose to say done"); with alert  and (" before it, these forums are taking off the alert part. Here is a image of what the code is suppose to look like

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Cross domain IE errorCross domain IE error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out