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...Jquery error using DNN panelsJquery error using DNN panels
Previous
 
Next
New Post
10/8/2012 7:42 AM
 

Hi all,

I've successfully added a few DNN tab controls to a few pages in my site and they work fine when I'm logged in as the host account but not for anyone else.

Here's the line that is supposedly generating the error:

$('#panels-demo').dnnPanels({selected:0});

The following jquery is being added under page settings --> page header tags:

<script type="text/javascript">

    jQuery(function ($) {

        var setupModule = function () {

            $('#panels-demo').dnnPanels({selected:0});

            $('#panels-demo .dnnFormExpandContent a').dnnExpandAll({

                targetArea: '#panels-demo'

            });

        };

        setupModule();

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {

            setupModule();

        });

    });

</script>

Any idea why this doesn't work for non-host users?

Thanks,
Mark

 
New Post
10/8/2012 8:10 PM
 
how did you add the code - creating a custom module or pasting script code into HTML module?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/9/2012 5:26 AM
 
Hi,
I encountered this problem too when add the scripts in HTML module, and I solved it by modifying the skin file.

Please check if you have added the controlpanel in your skin "<dnn:controlpanel runat="server" id="cp" isdockable="True" />", if not, add it.

NovaSoftware ---a professional outsourcing company in China .
* More than 6 years' offshore experience in DNN
* Successfully developed 30+ websites , 250+ DNN modules, 50+ sets of Skins/Containers.
* Demo Site:http://dotnetnuke.novasoftware.com/
 
New Post
10/9/2012 8:24 AM
 
Sebastion - I pasted directly in to an html pro module.

Eileen - that seems to have worked. May I ask how that solved the problem?

Thanks,
Mark
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Jquery error using DNN panelsJquery error using DNN panels


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