Hello elgg community.
I have experience programming, though i'm fairly new to elgg and jquery. I am ajaxifying an elgg site using history.js and ajaxify.js with jQuery 1.6.4. I am working with an elgg event manager plugin that uses jquery to handle click events.
Some of the plugin features don't work when the page is loaded dynamically, but work fine when the page is reloaded (ie refresh page in browser).
Using the console.log() function to debug, I can confirm that the elgg.event_manager.init function is only running on the first page load, thus not re-initilized when the events page is loaded.
Is there any way to re-run that init function when the page elements are dynamically loaded?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Paweł Sroka@srokap

Paweł Sroka - 0 likes
You must log in to post replies.If your'e relying on clicks only, using $.live() should be fine for you. See examples here: http://api.jquery.com/live/