Support

Home Forums Event Espresso Premium jQuery triggers when calendar finishes loading?

jQuery triggers when calendar finishes loading?

Posted: November 26, 2021 at 5:04 pm

Viewing 6 reply threads


craigpauldesign

November 26, 2021 at 5:04 pm

Hi all,

I need to execute some custom jQuery once the calendar has finished loading on my page. I am looking for any custom jQuery triggers that might fire once the calendar has finished loading so that I can execute my code after?

Hoping there is something. I tried looking through the documentation but triggers do not seem to be documented anywhere.

Thanks in advance


craigpauldesign

December 7, 2021 at 5:39 pm

Following up on this. Any response please?


craigpauldesign

December 8, 2021 at 12:40 pm

Can I please have a support response on this matter?!


craigpauldesign

December 9, 2021 at 12:41 pm

Why is the support team ignoring this support request? We see plenty of other tickets being answered whilst this one is ignored.


Tony

  • Support Staff

December 10, 2021 at 4:41 am

Hi Craig,

My apologies, I’m not ignoring your thread but there are times when I don’t know the answer and need to request feedback from one of our developers to confirm which take a little. Also, note that bumping your threads above basically puts your thread to the back of the queue as we try to work through threads based on the last reply date.

The only action we currently fire from the calendar loading is FHEE__EED_Espresso_Calendar__viewRender_action:

wp.hooks.doAction('FHEE__EED_Espresso_Calendar__viewRender_action', view, eeCAL);

Which you can hook into using something like:

wp.hooks.addAction( 'FHEE__EED_Espresso_Calendar__viewRender_action', 'namespace', function( view, eeCal){
    console.log( 'testing' );
} );

However, that ‘fires’ before the ajax request has been completed to render the events themselves so I’m not sure if that will work for you here?

If you are looking to do something each time the events render then the only method I’m aware of right now is using the ajaxComplete() method shown here:

https://gist.github.com/joshfeck/6b8cc1d4d783c599eeda6f8af2ec9c89

I can request an additional hook is added to the calendar if the above don’t work for you but I’ll need more specifics on when you need that to run so I can pass those details to the developers.


craigpauldesign

December 13, 2021 at 12:32 pm

Hi Tony,

These methods should work for us.

Thank you.


Tony

  • Support Staff

December 14, 2021 at 3:57 am

You’re most welcome 🙂

Viewing 6 reply threads

The support post ‘jQuery triggers when calendar finishes loading?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso