Login Register

dispatchEvent

dispatchEvent() to unknown leaf-node

Hi! [first post dance]

I wish to dispatch an event programmatically.
The scenario is well modelled by trying to spatially displace a regular event. E.g. a click-event occurs at (10,10) and I wish to re-dispatch (+10,+10) at (20,20).

I tried calling dispatchEvent() on the uber-container (e.g. DIV) but it seems that makes the event's target the uber-container rather than the HTML component at that location (e.g. a link, Dijit widget, etc). I tried synthesizing an entirely new event (rather than redispatching an extant one) and saw the same result.

Syndicate content