Yes, because here in this short code data are coming due to some js files, now when you are going to the page which having those shortcodes you have to reload those js files again
for ref:
http://youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/
Thread Starter
poco06
(@poco06)
Hello manishkrag,
Thanks for your answer.
Can you be a little more precise on how I can reload the needed js files?
I have visited the link you mentionned but thses are specific examples and I don’t know how to cope with mines.
Thanks
Thread Starter
poco06
(@poco06)
Hello manishkrag,
Sorry to push you again. Do you have some info concerning how I can reload the js file (what type of command should I use and where should I place it).
Many thanks.
NP,
Whatever the link I have provided you above is explaining all, let say you want to reload a js file after ajax, then folow the below:
a) Open file ajaxify.js
b) Search for “$body.removeClass(‘loading’);”
c) Paste the below code just before this line
scriptNode = document.createElement('script');
contentNode.appendChild(scriptNode);
scriptNode.setAttribute('src', rootUrl + 'YOUR JS FILE PATH');
Thread Starter
poco06
(@poco06)
Hi manishkrag,
Thanks for the info. I’ve tried it and did not see any improvement. Concerning google plugin for example, I have the same .js files that are loaded with or witout ajaxify, but when I use ajaxify, the map is not shown.
Is there something else to check?
Regards