سؤال

I'm developing a PHPFox Module where I use a jQuery Plugin to paginate a serie of images. When I access the module the plugin doesn't work, but the rest of the js code have no problem. The only code that doesn't work is which is placed inside the $(document).ready event. If I refresh the page the plugin starts to work.

I think the problem is caused for the cache of the CMS, because the DOM isn't reloaded when I load the Module. I tried to change de $(document).ready for window.onload but I'v the same problem.

Somebody could help me?

هل كانت مفيدة؟

المحلول

Finally I've find the solution:

To use jQuery functions on load in phpfox you must use the sintax $Behaviour.onLoadEvents = function(){rest of the code} insted of the traditional and standar $(document).ready

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top