Been playing about with prototype/behaviour.js and found that a link applied using javascript (from an ajax call) does not work according to a behaviour.js rule i specify. Instead it just works as if javascript is disabled and follows the href. Exactly the same code does however work when loaded from scratch they work fine. I have tried reregistering the rules using Behaviour.register(myrules); again after the ajax assignments which fail to have any effect.

Any ideas?