1
flymirco
Kwicks effect using jQuery in Xoops 2.3.1
  • 2009/1/31 16:48

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi all and thanks for the great work with Xoops.
I am using XOOPS 2.3.1 and try to put the the Kwicks effect using jQuery in my theme.

In the release 2.0.18 there were a modified version of xoops.js, provided by krisfr, that worked with jQuery, so I want to know if there is a similar modified version of the file for the 2.3.1 release.
I followed the step indicated in Jeremy Martin blog but the effect didn't work.
After including jquery library tin the theme I used this code for the effect:
<script type="text/javascript">
jQuery(document).ready(function(){
    
jQuery('.kwicks').kwicks({  
        
max 300,  
        
spacing 0  
    
});  
});      
script>

Html and css are the same of the tutorial.

Any idea on how to resolve it? Thanks in advance.

flymirco

2
ghia
Re: Kwicks effect using jQuery in Xoops 2.3.1
  • 2009/2/2 6:56

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Why did you change line 2?
jQuery(document).ready(function(){

3
flymirco
Re: Kwicks effect using jQuery in Xoops 2.3.1
  • 2009/2/2 10:29

  • flymirco

  • Just popping in

  • Posts: 42

  • Since: 2006/9/20


Hi ghia,

first of all I have to tell that I solved the problem. There were a problem with a js file, it was corrupted, that's why it didn't work. Despite that there is still an open question. I am using an old version of xoops.js, built for release 2.0.18 and I don't know if this can compromise something in my 2.3.1 instance.

Now for ghia, I made the change because both XOOPS javascript and jQuery use the $() function, so to avoid conflicts between the two js systems it's better to use the code I wrote, as I found in this post.

flymirco

Login

Who's Online

316 user(s) are online (214 user(s) are browsing Support Forums)


Members: 0


Guests: 316


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits