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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...jquery tabs issuejquery tabs issue
Previous
 
Next
New Post
11/27/2012 4:25 PM
 

I saw another post about this problem and I tried the suggested solutions, but none of them worked for me.  I have the following code in an html module:

< div class="dnnForm" id="tabs-demo" >
< ul class="dnnAdminTabNav" >
    < li >< a href="#ChristopherColumbus" >Christopher Columbus< /a >< /li >
    < li >< a href="#IsaacNewton" >Isaac Newton< /a >< /li >
    < li >< a href="#JohannesGutenberg" >Johannes Gutenberg< /a >< /li >
< /ul >
< div id="ChristopherColumbus" class="dnnClear" >
< div class="dnnRight" style="width: 62%; margin-left: 2%;" >
< h1 >Christopher Columbus< /h1 >
< p >Italian navigator, colonizer and explorer whose voyages led to general European awareness of the American continents.< /p >
< /div >
< /div >
< div id="IsaacNewton" class="dnnClear" >
< div class="dnnRight" style="width: 62%; margin-left: 2%; "  >
< h1 >Isaac Newton< /h1 >
< p >English physicist, mathematician, astronomer, natural philosopher, alchemist, and theologian. His law of universal gravitation and three laws of motion laid the groundwork for classical mechanics.< /p >
< /div >
< /div >
< div id="JohannesGutenberg" class="dnnClear" >
< div class="dnnRight" style="width: 62%; margin-left: 2%;" >
< h1 >Johannes Gutenberg< /h1 >
< p >German printer who invented the mechanical printing press.< /p >
< /div >
< /div >
< /div >

I have the following code in the Module header (I've also tried putting it into the module footer and the page header):

< script type="text/javascript" >
jQuery(function ($) {
$('#tabs-demo').dnnTabs();
});
jQuery(function ($) {
$('#tabs-demo').dnnTabs({selected: 0});
});
< /script >

As long as I'm logged in as host, my tabs work just fine.  When I am not logged in, the tab headers are displayed, but are not functional and the tab contents are all visible (not tabbed).  I've been told that it looks like the jquery is not being loaded.  Why and how can I fix this?

 
New Post
11/28/2012 2:52 AM
 

This has nothign to do with jquery not loaded but more with dnntabs not loaded. The solution for this is to actually reference the files yourself in the skin.Putt the following in the top of the skin where you want to have this functionality ( just above the first html of your skin )

<script runat="server">

Protected Overrides Sub OnInit(e As EventArgs)
MyBase.OnInit(e)
jQuery.RequestDnnPluginsRegistration()
End Sub

</script>

what was the other thread you mentioned

 
New Post
11/28/2012 10:22 AM
 
Here's the link for the other forum thread: http://www.dotnetnuke.com/Resources/Forums/GroupID/91.aspx. I am using the Catalyst2 skin for our web development site. Which file do I modify? Is it an ascx file in the portal's skins folder?
 
New Post
11/28/2012 10:37 AM
 
Thanks so much! I figured out where to put the script code and gave it a try. It seems to be working correctly now.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...jquery tabs issuejquery tabs issue


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