Event List Reload Problem

Home Forums Calendar Products Events Calendar PRO Event List Reload Problem

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1102351
    Vivianne
    Participant

    Hi there!

    I found a problem with my event list which is generated on the page /events as a standard in the plugin.
    When it loads the first time everything is ok.
    As soon as I enter a date or a city or choose a category in the search/filter-bar it loads the list again with only the filtered events.
    To here it is fully working.
    BUT:
    It doesn´t load my function.php (from my theme) and my custom.js anymore.

    As I modified the list to show the booking form and some custom fields I really need this working.
    Do you have an idea, how I can force the loading of this two files anytime it shows the filtered events?

    #1102432
    George
    Participant

    Hey Vivianne,

    Thanks for reaching out. I’m unfortunately a bit stumped here because there are no templates inside our plugins that call functions.php or custom.js files at all.

    Functions.php is loaded by your theme on its own—our plugins do not load or unload that file in any way, ever.

    Custom.js sounds like a custom file you’ve added—our plugins do not load or unload that file in any way, ever.

    So, it sounds like your own custom code is causing the odd behavior here, because our plugins do not load or unload those two files you mentioned on their own.

    Can you elaborate a bit more on this, here? I will try to help—but just to make it clear, we unfortunately cannot help with any custom-code-related things. 🙁

    Read this page to learn more before posting your reply → https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    Thank you!
    George

    #1102441
    Vivianne
    Participant

    This reply is private.

    #1102448
    Vivianne
    Participant

    I found an interesting topic here:
    http://stackoverflow.com/questions/16062899/jquery-doesnt-work-after-content-is-loaded-via-ajax

    If I want to try this solution I need to have the possibility to access the ajax call for the filtering of the event list. Where can I find that?

    Do you think this could fix the problem?

    #1102669
    George
    Participant

    Hey Vivianne,

    Thanks for sharing all of this. It unfortunately is all related to your custom code:

    I have code in my functions.php to add the booking form to the list and also code in the custom.js to place the colored button on the right, which opens the form. Within this file is also code to open a pop-up if you click on the spoon/knife icon and to show a message if no events are available in the chosen area/date.

    It is indeed the case that the JavaScript needs another call after the AJAX call. That is correct. However, we are not able to dive into your custom code to make another JavaScript call after the AJAX call.

    Sorry to disappoint! Check out this page to learn about the support available here: https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    So to implement the fixes you describe, you would have to write that custom code or hire a professional developer to write the code for you. We have a list of great developers here → http://m.tri.be/18k1 (and have no affiliation with any of these folks—they’re simply some well-respected names in the community that we’ve compiled to share in situations like this one).

    Sincerely,
    George

    #1102675
    Vivianne
    Participant

    I understand that you cannot support further more in this case.
    But can you tell me where this ajax call is written which reloads the event list?

    #1102951
    Vivianne
    Participant

    I found a solution!
    In my custom.js I added following code:

    $( tribe_ev.events ).on('tribe_ev_ajaxSuccess', function() {
      customJS();
    });

    And I added my code which needs to be loaded after the Ajax Call in the customJS-var.

    #1103155
    George
    Participant

    Awesome—thank you for sharing this update.

    I’m sorry that I wasn’t able to dive into the code myself to recommend that solution above, but I’m just glad to hear about some progress regardless.

    Best of luck with your site!
    George

    #1109117
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Event List Reload Problem’ is closed to new replies.