when i get node with

$anode = node_load(45);
$node_html = drupal_render(node_view($anode));

and return it to page with ajax, the flag link doesnt have handler to this new DOM element, so ajax flagging don't work. how i can bind flag handler to this new dom element? i tried to call updateLink() from flag.js but it don't work.

Comments

joachim’s picture

IIRC Drupal JS behaviours has a system for this, though it's way beyond my JS abilities.