[jQuery] Re: Creating and manually firing events

2008-06-05 Thread KayakingJoe
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 myButton = dojo.byId('mybu

[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