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...Using the JQuery.Cycle plugin in vainUsing the JQuery.Cycle plugin in vain
Previous
 
Next
New Post
6/7/2014 3:36 PM
 

I have been trying to create a slide show with  the JQuery.Cycle plugin to no avail.

I've dowloded and uploaded the JQuery and Cycle plugin to a folder which I named js in my root directory. 

I used the Will Strohl Content Injection Module to inject following code into the header:


<script type="text/JavaScript" src="js/jQuery.1.11.1.js"></script>

<script type="text/JavaScript" src="js/jquery_cycle_all.js"></script>

<style type="text/css">

.slide{

    width: 1265px;

   height: 314px;

   overflow: hidden;

}

</style>

<script type="text/JavaScript">

$(function()    {

      $('.slide').cycle({

            fx:      'scrollDown',

             timeout: 2000,        

             speed: 1000            

                          });

});

</script>


Then I used the HTML module on same page to display the slide..I entered following html in the edit content mode:

<div class="slide">

<img src="/portals/0/Images/Banner1.jpg" alt=" myImage" />

<img src="/portals/0/Images/Banner2.jpg" alt=" myImage" />

<img src="/portals/0/Images/Banner3.jpg" alt=" myImage" />

<img src="/portals/0/Images/Banner4.jpg" alt=" myImage" />

</div>

But it didn't work! All i got is the first image in the list.

Need all the help I can get

Regrds

 
New Post
6/8/2014 12:51 PM
 
that typically indicates there are 2 copies of jquery referenced, which means neither works. This happens as other elements on the page (such as the control panel) load jquery - to avoid duplicate loading you should use the API e.g. JavaScript.RequestRegistration(CommonJs.jQuery);

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/9/2014 12:43 PM
 

Thanks for your reply sir,

The first Jquery referenced is the Library while the second is the Cycle Plugin...

Please how do I  use the API e.g. JavaScript.RequestRegistration(CommonJs.jQuery); ?

 
New Post
6/9/2014 3:41 PM
 
FYI the wiki has some futher background and useful links (http://www.dnnsoftware.com/wiki/page/...), but you need to call the API method via code (typically the codebehind of your module, though adding it via the jquery skin object is common also - http://inspectorit.com/cms/dotnetnuke...).

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/10/2014 4:31 AM
 
Hi,

there is a free module that uses the jquery cycle plugin called "Jquery Cycle Carousel", its a bit old but it works.

You can find it here:

https://jqcarousel.codeplex.com/

Might save you some time!

Regards,

Geoff

      
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Using the JQuery.Cycle plugin in vainUsing the JQuery.Cycle plugin in vain


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