Matt,

2009/1/2 Matt Foster <mattfoste...@gmail.com>

>
> 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>
>

this works thank you very much

>
>
> 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
> >
>
I felt a bit stupid asking such a basic question is there some documentation
on these kinds of differences per browser?

-- 
Met vriendelijke groet,

Joris Wijlens

Tel. 06-28419140

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to