javascript callbacks..

Home Forums Calendar Products Events Calendar PRO javascript callbacks..

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #939678
    Jacob Masters
    Participant

    Seen a few threads that have been closed with out answer on this, but are there any javascript callbacks to the ajax load of admin-ajax.php for refreshed calendar content via the filter, or browse bars?

    Tried ajaxComplete without success and i don’t really want to hack the javascript myself..

    #939679
    Jacob Masters
    Participant

    this seems to do it:

    $( tribe_ev.events ).on( ‘tribe_ev_ajaxSuccess’, function() {
    //Do my stuff//

    });

    Still be interested to know if there’s and official or better way?

    #939738
    Brian
    Member

    Hello,

    We do not have a official or better way to give you if this works for you:

    $( tribe_ev.events ).on( ‘tribe_ev_ajaxSuccess’, function() {
    //Do my stuff//

    });

    That is what I would use if trying to do a customization.

    If it is working for you I would stick with it.

    Let me know if you have any follow up questions.

    Thanks

    #939800
    Jacob Masters
    Participant

    Good to know, but this method does not work for events lists called from the filter bar, any clues to which javascript ajax call to listen to to catch that reload?

    #939814
    Brian
    Member

    Not exactly sure which ajax call.

    This is the file that controls it in the filter bar:

    the-events-calendar-filterbar\resources\filter-scripts.js

    #949517
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘javascript callbacks..’ is closed to new replies.