Skip to content

Ajax Elements re-initialization of Gridder #45

@mattherick

Description

@mattherick

Hi,
I have a page, where li-elements are loaded in a gridder-ul and after that I initialize the gridder with $('.gridder').gridderExpander(....) for these elements -> is working correct.

If I now want to load more li-elements and append them to the gridder-ul it is not working anymore. If I re-initialize the gridder the new elements are working and the old ones not.

Any idea how this could be fixed?

I initialize it like following:

$('.gridder').gridderExpander({
    scroll: true,
    scrollOffset: 30,
    scrollTo: "listitem",                  // panel or listitem
    animationSpeed: 400,
    animationEasing: "easeInOutExpo",
    showNav: false,                      // Show Navigation
    nextText: "Next",                   // Next button text
    prevText: "Previous",               // Previous button text
    closeText: "Close",                 // Close button text
    onStart: function(){
        //Gridder Inititialized
    },
    onContent: function(){
        //Gridder Content Loaded
      var element = jQuery(".gridder-show");
      initializeFullFlexslider(element); // custom function to initialize a flexslider within the gridder
    },
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions