[jQuery] How to prevent default behavior in an event handler that returns a function

2009-10-29 Thread The alMIGHTY N
Example page: http://jqueryfun.nathanielklee.com/eventFirefox.html Following one example provided in an official jQuery tutorial (located at http://docs.jquery.com/Tutorials:How_jQuery_Works), I can pass event into a function I define directly in the click assignment handler. e.g.

Re: [jQuery] How to prevent default behavior in an event handler that returns a function

2009-10-29 Thread Michael Geary
You mentioned not being able to pass the event object into your click function, but I don't see the code where you tried to do that, so I don't know what went wrong. In any case, the function-returning-a-function is much more complicated than you need. Risteli's code is on the right track, but it