You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.
Hello,
I am trying for the second time to use ajaxify wordpress site on a FoundationPress theme.
Problem is, if there is anything using javascript (for example my menu is using the sticky plugin from Foundation), it's not working after an ajax reload. Which is weird, because the foundation.js file is being reloaded...
Has anyone made this theme work with ajax or is it just me ?
EDIT :
I have found the root of my issue.
Most of the javascript in foundation.js is executed on the document.ready event.
The problem is that with an ajax load, there is no document.ready event.
I have found that there is no way to simulate it.
Would it possible to create a new function, for example onPageLoad(), where all of this code goes, and this one function would be called on document.ready. And us people working with ajax could call this function again on ajaxComplete ?
Would be nice !
The text was updated successfully, but these errors were encountered:
Hello,
I am trying for the second time to use ajaxify wordpress site on a FoundationPress theme.
Problem is, if there is anything using javascript (for example my menu is using the sticky plugin from Foundation), it's not working after an ajax reload. Which is weird, because the foundation.js file is being reloaded...
Has anyone made this theme work with ajax or is it just me ?
Here is the example of the not working website if it can help anybody : https://lesdeuxvagues.com/demo/
EDIT :
I have found the root of my issue.
Most of the javascript in foundation.js is executed on the document.ready event.
The problem is that with an ajax load, there is no document.ready event.
I have found that there is no way to simulate it.
Would it possible to create a new function, for example onPageLoad(), where all of this code goes, and this one function would be called on document.ready. And us people working with ajax could call this function again on ajaxComplete ?
Would be nice !
The text was updated successfully, but these errors were encountered: