Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amir Khan 1199 posts 2567 karma points
    Aug 17, 2010 @ 17:44
    Amir Khan
    0

    Change Gallery Source on click

    I have a situation where I'm using the jquery coda slider for some galleries on webpages. I'd like to enable it so that when i click on a link whithin a page, it changes the source of the gallery to a different media folder, hopefully without a page refresh. Any ideas for a good strategy to achieve this?

  • Dan 1250 posts 3747 karma points admin c-trib
    Aug 17, 2010 @ 18:39
    Dan
    0

    Hi Amir,

    It seems that you have three options:

    1. Reload the page, passing a querystring variable to the macro to render the appropriate gallery items (not what you want, by the sound of it).
    2. Load the content via AJAX - jQuery would make this a piece of cake.
    3. Load all of the content in one hit, and use JavaScript to progressively show/hide the appropriate content - again, jQuery is going to make this really easy, but depending on the size of the gallery it might be a bit of a large page load.

    My preference would be no. 2.

    Hope this helps...

     

  • Amir Khan 1199 posts 2567 karma points
    Aug 18, 2010 @ 23:56
    Amir Khan
    0

    Dan, thanks for the response. I guess my main challenge is how to actually enable the linking. Like if I want to select some text in the WYSIWYG editor and then link it to the media folder that I want it to draw images from...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies