jQuery, CSS and pagination...
Last Post 05-25-2010 03:55 AM by Miguel Clara. 5 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
Miguel ClaraUser is Offline
going with the flow
going with the flow
Posts:56
Avatar

--
05-17-2010 04:00 AM

    I'm trying to implement this code:
     

    http://pastebin.com/suFNvctV
     

    Waht this will do is to make the thumbnail Zoom when yoou houver the mouse... and when I click the details page will then open in a different page!

     

    But... pagination seems not to work with this, cause it only works in the first page, and if i change the number of itmes per page in the dropdownlist NONE of the pics get the disired effect!

     

    Its not the first time I try to implement java script and it fails!

    Miguel ClaraUser is Offline
    going with the flow
    going with the flow
    Posts:56
    Avatar

    --
    05-17-2010 11:50 AM

    I perfected the code a bit, I changed the $ to jQuery because I remembered that the $ could be used by the module it self!

     

    But I still have the same issue... so I was thinking about it...

     

    jQuery(this).find('img').addClass("hover").stop()


     

    Could it be that when I change page Jquery script is not loaded again?

    Miguel ClaraUser is Offline
    going with the flow
    going with the flow
    Posts:56
    Avatar

    --
    05-20-2010 08:45 AM

    Any help? :| 

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    05-20-2010 03:18 PM
    HI Miguel, I cannot help you here because I'm not an expert on jquery (only a beginner) and I do't know how to achieve this effect either. -- David
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    05-21-2010 09:00 AM

    Yes... There are many types of plug ins for JavaScript or jQuery....

    Here are a few tips:

    1. I would suggest using something such as Script Injector to inject scripts into your page. We do this for several modules and several pages on Data Springs as well.  Here is an example that uses Script Injector to inject a script and then uses Dynamic Forms to implement the jQuery.

    2. We don't have any code that stops JavaScript from being saved in the user directory templates however your FCK / Rich Text Editor might be removing it directly. My suggestion would be to call the jQuery or JavaScript in the template but before saving it choose 'Basic Textbox'. I think that Basic Textbox doesn't remove any unwanted tags etc...

    If you need us to directly code or implement something for you we can do this via Premium Support (sorry JavaScript is so very open-ended and not something we can directly support as it's a very large programming language).

    Thanks,

    Chad
     

    Miguel ClaraUser is Offline
    going with the flow
    going with the flow
    Posts:56
    Avatar

    --
    05-25-2010 03:55 AM

     

    Yeah I know about the editors problem... I always use the source view or basic/html 

     

    I'm trying to do something like this:

    www.sohtanaka.com/web-design/fancy-thumbnail-hover-effect-w-jquery/
     

     

    Only in my case I will use the link to open the uiser details instead of showing the picture in the right side

     

    I tried to look up for that Script Injector, but I can't find it in snowcovered... I'll keep googling for it!

    My only problem is that this does work while loading the page, but if I change the page size to show more it doesn't, that's why I think its related to pagination!

     



    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi