PJAX Support

Home Forums Calendar Products Events Calendar PRO PJAX Support

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1009917
    Cole
    Participant

    I am currently using this plugin on a theme that is utlizing PJAX. The issue is since the plugin only fires certain things on events pages, the ajax loading wheel just keeps spinning and google maps do not work.

    Are there any functions I can call on pjax:success that will initialize the correct functions that need to run to make it work smoothly?

    It appears to not enqueue any scripts or stylesheets either because they fire only on the events pages.

    When just refreshing the page or loading the page directly, everything works as needed. Only when navigating to the events pages does it not work. Was hoping for some easy functions to call in PJAX to make it work.

    I appreciate the help.

    #1010122
    George
    Participant

    Hey @Cole,

    I’m really sorry to hear things aren’t working with the PJAX functionality of your theme. PJAX is pretty cool but there may indeed be some incompatibility here that would take extensive code customization to fix at all.

    For one thing, if you’re curious about how specific scripts and stylesheets are enqueued – which is important here, obviously – I’d recommend browsing the folder at src/Tribe/Asset/ in your plugin files for The Events Calendar and/or Events Calendar Pro. You’ll find these sorts of files being loaded here.

    If the loading of the assets itself is working, then your next question about initializing functions can be turned to – unfortunately, it isn’t generally as simple as calling one function or something like that, and the functionality is split across several different JavaScript files. If you’re just focused on the Map View for now, I’d recommend going into PRO’s file src/resources/js/tribe-events-ajax-maps.js and seeing how things all work there.

    For true integration with your PJAX theme, you will likely need to make some more extensive code customizations than a few function calls, and/or would need to contact your theme developer for assistance.

    I hope some of this helps @Cole~

    #1014879
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘PJAX Support’ is closed to new replies.