Its because FF allows for native prototype extension and IE does not, such that any referenced element won't have proto's element extension methods until its been explicitly extended.
<a href="#" onclick="$(this).up('.bla').remove()">Back</a> But to be honest I wouldn't use that style of event listener, try something like this... $$(".bla a").invoke("observe", "click", function(e){ e.element().up(".bla").remove(); }); -- http://positionabsolute.net On Jan 1, 5:43 pm, joris77 <joriswijl...@gmail.com> wrote: > Hi, > > This works in firefox but it doesn't in internet explorer 7 is this an > issue or am I missing something? > > <html> > <head> > <script src="prototype.js" type="text/javascript"></script> > </head> > <body> > <div class="bla"> > <a href="#" onclick="this.up('.bla').remove()">Back</a> > </div> > </body> > </html> > > Thanks anyway --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---