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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Example of using jQuery UI with DNN 6.2Example of using jQuery UI with DNN 6.2
Previous
 
Next
New Post
5/15/2012 11:52 AM
 

I have been scratching my head for 3 hours trying to get jQueryUI tabs to work in my custom module that I am building using Chris Hammond's Module Template.  I'm wondering if anyone has a simple example because the documentation doesn't seem to make sense to me.  I've also tried using DnnTabs() in place of tabs().

 

Here is my code for MyModule.ascx:

<dnn:DnnJsInclude ID="DnnJsInclude" runat="server" FilePath="~/DesktopModules/MyModule/module.js" />

<div id="tabz">
    <ul>
        <li><a href="#tabs-1">Page 1</a></li>
        <li><a href="#tabs-2">Page 2</a></li>
    </ul>
    <div id="tabs-1">
        <div class="form">This is Tab 1</div>

    </div>
    <div id="tabs-2">
        This is Tab 2
    </div>
</div>

 

Code in module.js:

(function ($) {
    $("#tabz").tabs();
})(jQuery); 

 

I also tried adding this to my myModule.ascx.cs:

protected void Page_Init(object sender, EventArgs e)
        {
            Framework.jQuery.RequestRegistration();
                           
            if (Framework.AJAX.IsInstalled()) {
                Framework.AJAX.RegisterScriptManager();
            }
        } 

If I put an alert in the jQuery code it executes with or without this Page_Init().  Thanks for your help!

 
New Post
5/16/2012 11:38 AM
 

Here are a couple of quick examples that I have offhand, 

http://multifunction.codeplex.com/Sou... 

http://dnnsimplearticle.codeplex.com/... 

hopefully one of those gets you pointed in the right direction


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
5/25/2012 3:57 AM
 

Thanks Chris!

The problem I was having is that I was not wrapping the jQuery on page load like so:

(function ($, Sys) {
    $(document).ready(function () {
        $(".date").datepicker();
    });
} (jQuery, window.Sys));

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Example of using jQuery UI with DNN 6.2Example of using jQuery UI with DNN 6.2


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