Yep I am. I event tried event.stopPropagation() but still the same thing. Can I say I hate IE?
On Feb 24, 10:26 am, Hector Virgen <djvir...@gmail.com> wrote: > Are you passing the event to the function? > $("#btnAddSession").click(function(event){ > // ... // > event.preventDefault();}); > > -Hector > > On Tue, Feb 24, 2009 at 6:48 AM, bittermonkey <brakes...@gmail.com> wrote: > > > Steve, yes I did try to use <button>, <a>, <input="button"> and > > <input="submit"> but to no success. > > > Hector, it still does the same thing even with the preventDefault() > > method in place. > > > On Feb 23, 11:43 pm, Hector Virgen <djvir...@gmail.com> wrote: > > > Try preventing the default action of the event: > > > $("#btnAddSession").click(function(event){ > > > $("#addproductsForm").dialog("open"); > > > event.preventDefault(); // prevents the link from being followed > > > > }); > > > > -Hector > > > > On Mon, Feb 23, 2009 at 7:01 PM, Steven Yang <kenshin...@gmail.com> > > wrote: > > > > have you tried changing the type of btnAddSession from submit to > > button?