[jQuery] Re: Creating and manually firing events

2008-06-05 Thread KayakingJoe
}) .simulate(mousemove, { clientX: 60, clientY: 60 }) .simulate(mouseup, { clientX: 60, clientY: 60 }); you can simply call $(#foo).simulate(drag, { dx: 10, dy: 10 }); - Richard Richard D. Worthhttp://rdworth.org/ On Wed, Jun 4, 2008 at 3:45 AM, KayakingJoe [EMAIL PROTECTED] wrote: Hi, var

[jQuery] Creating and manually firing events

2008-06-04 Thread KayakingJoe
Hi, var myButton = dojo.byId('mybutton'); var evObjclick = document.createEvent('MouseEvents'); evObjclick.initMouseEvent( 'click', true, true, null, 0, 27, 53, 27,53, false, false, false, false, 0, null ); myButton.dispatchEvent(evObjclick); I'm looking for a cross-browser solution to the above