Hi Joris,

> I felt a bit stupid asking such a basic question is there some documentation
> on these kinds of differences per browser?

No need to feel stupid, we're all new at some point.

I found when starting out with Prototype that it paid me back very
well indeed to read the API from beginning to end.  It takes just a
couple of hours, and you get that time back almost immediately being
saved from doing things the "wrong" way or running into things like
this.  (This particular issue is discussed in the "How Prototype
Extends the DOM" page[1], which is linked from the documentation of
the Element class[2].)  This suggestion of reading through the API is
one of several listed under "How do I learn Prototype" in the FAQ on
the unofficial Prototype & script.aculo.us wiki.[3]

[1] http://prototypejs.org/learn/extensions
[2] http://prototypejs.org/api/element/
[3] http://proto-scripty.wikidot.com/faq#learn

HTH,
--
T.J. Crowder
tj / crowder software / com

On Jan 2, 4:23 pm, "Joris wijlens" <joriswijl...@gmail.com> wrote:
> 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