Skip to content Skip to sidebar Skip to footer

Event Listeners For Dynamic Content In Evently

I am generating a dynamic html table. One of the columns in the table has a clickable image (a href). For testing, I have also created a static table, with similar structure as the

Solution 1:

I found a workaround: use live instead of bind in the evently library:

cd vendor/couchapp/_attachments
cat jquery.evently.js  | sed -e 's!\.bind(!.live(!'

I'll try to push this upstream into evently.

Solution 2:

Alternatively, you may lay your events in a following way:

table/<event>/selectors/a/click.js

(where is event responsible for filling your dynamic table, for example _changes). This ensures that the events are being bound after table is generated.

Post a Comment for "Event Listeners For Dynamic Content In Evently"