Re: [Rails-spinoffs] Event.observe on IE

2006-04-05 Thread Ed C.
preventDefault() doesn't work in IE, you'd need to do "return false" which is wrapped nicely in Prototype. I think you could replace:   "if ( event.preventDefault ) event.preventDefault();"   with:   "Event.stop(event);"   ?  On 4/3/06, Bill Moseley <[EMAIL PROTECTED]> wrote: On Mon, Apr 03, 2006 a

Re: [Rails-spinoffs] Event.observe on IE

2006-04-03 Thread Bill Moseley
On Mon, Apr 03, 2006 at 03:41:21PM -0500, Todd Ross wrote: > On 4/3/06, Gregory Hill <[EMAIL PROTECTED]> wrote: > > IE is loading the page in the 'href'. Not sure there's a way to prevent > > that. That's because it doesn't seem to be running the event code at all. > Return false from the oncli

Re: [Rails-spinoffs] Event.observe on IE

2006-04-03 Thread Todd Ross
On 4/3/06, Gregory Hill <[EMAIL PROTECTED]> wrote: > IE is loading the page in the 'href'. Not sure there's a way to prevent > that. Return false from the onclick event. Todd ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://l

RE: [Rails-spinoffs] Event.observe on IE

2006-04-03 Thread Gregory Hill
spinoffs@lists.rubyonrails.org > Subject: [Rails-spinoffs] Event.observe on IE > > > I'm working again on unloading events before making my ajax call. > > > This code works on Firefox/Opera, but IE doesn't seem to get the > onclick events registered. Could someon

[Rails-spinoffs] Event.observe on IE

2006-04-03 Thread Bill Moseley
I'm working again on unloading events before making my ajax call. This code works on Firefox/Opera, but IE doesn't seem to get the onclick events registered. Could someone with IE take a look? http://hank.org/demos/ajax3.html The js is included in that file. There's alerts() to show when