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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Multiple Service Framework API modules on a page - JournalMultiple Service Framework API modules on a page - Journal
Previous
 
Next
New Post
4/16/2015 11:50 AM
 

I'm having problems with the Journal and 401 not authorized errors.

It works fine if the Journal is the only module on a page, but as soon as we add our own modules on to the same page, then it doesn't work

Our module is doing a simple AJAX call to our own DnnApiController.

I've tried to ensure my javascript variables are unique and our modules are not using sf as the ServicesFramework declaration, but it doesn't seem to work.

I've noticed that when it's the only module on the page, the ajax request headers contain the ModuleId and TabId, but if it's on a page with multiple modules, it doesn't send the moduleId and tabId, hence I get 401 errors.

Any one got any tips or workarounds?

I've also noticed that if you use the same sf javascript variable on all of your modules and have more than one on the same page, then I get issues with editing my page. I have therefore, made mine all unique.

 var controllerPath = uniqueSF.getServiceRoot('WebAPI');

 var request = $.ajax({
            type: "GET",
            url: controllerPath + url,
            beforeSend: uniqueSF.setModuleHeaders,
            data: params
 });

 
New Post
4/18/2015 9:35 AM
 
most commonly when I see this it's because a 3rd party piece of javascript is running too soon i.e. it's not wrapped in document.ready - http://www.dnnsoftware.com/forums/for...

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/21/2015 4:10 AM
 

that's great, it worked a treat

many thanks

Dan

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Multiple Service Framework API modules on a page - JournalMultiple Service Framework API modules on a page - Journal


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