IE is loading the page in the 'href'. Not sure there's a way to prevent that.
Greg > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Bill Moseley > Sent: Monday, April 03, 2006 1:49 PM > To: rails-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 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 the > events are registered. > > > The idea of the code is to look for any elements with a "ajaxtarget" > class, and then adds events for all children that have a class of > "ajax". > > <div id="target" class="ajaxtarget"> > > <ul class="navlist"> > <li><a href="future3" class="ajax">future</a></li> > <li><a href="recent3" class="ajax">recent</a></li> > <li><a href="past3" class="ajax">past</a></li> > </ul> > > <p>here's some content</p> > > </div> > > So in this example, three events are registered. And onclick the > events are unloaded, and Ajax.Updater is called to replace the content > in "target" > > And onComplete isused to reset target's onclick events. > > What am I doing wrong so that IE doesn't see the events? > > > > -- > Bill Moseley > [EMAIL PROTECTED] > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs