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
Did you try this.up('div.bla')?
Walter
On Jan 1, 2009, at 5:43 PM, joris77 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
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
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