X
225375

Loading dynamic calendar data via AJAX possible?

I have some complex and mostly static webpages that I would like to cache.

The page also contains an EvenON calendar showing featured events via [add_eventon_list …].

I read about lazy loading via AJAX, however it doesn’t seem to work by default. Is there a way I can enable this for Event Lists? Or which types are supported for this?

BY: Christian Brugger - Mar 5,2021 AT 6:58AM - 4 years ago
    • infotainerdave Mar 5,2021 AT 7:08AM - Posted 4 years ago - #225382

      by default they load with ajax

    • Christian Brugger Mar 6,2021 AT 2:22AM - Posted 4 years ago - #225485

      That’s not what I see. I use the following short-code:

      [add_eventon_list]

      My version is EventON  3.1, without any changes to the source code. Also I checked the settings and I didn’t see anyway to disable this globally.

      Here is what I see:

      • Event data is within the HTML, see screenshot.
      • There is one Ajax request, but it does only contain global strings, see second screenshot.

      Can you tell me how I enable the Ajax loading of the event data? If I cache the website like this it won’t work.

    • Christian Brugger Mar 6,2021 AT 2:22AM - Posted 4 years ago - #225487

    • infotainerdave Mar 6,2021 AT 5:13AM - Posted 4 years ago - #225499

      Thank you for your messages, I am going to assign this ticket to Ashan and he will be able to take it from here and find you a solution. Please allow some time for him to get back to you, we greatly appreciate your patience and thank you for being a eventon customer! Also please disable any IP blocking on your site if there are any.

    • Ashan Perera Mar 8,2021 AT 3:17PM - Posted 4 years ago - #225927

      Hello Christian, the ajax on init only runs for main calendar add_eventon and fullcal, dailyview, weeeklyview. The list use legacy loading at the moment and we are hoping to convert that in the future. We are also going to add an option to disable init cal data loading via ajax if a calendar is not available in the page. More on this in version 3.1.1 🙂

    • Christian Brugger Mar 9,2021 AT 1:14PM - Posted 4 years ago - #226237

      Thank you Ashan. Both would be very useful indeed. Looking forward to the next release 🙂

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON