[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread AlannY
a unique element, it would return > undefined. > > To resolve, change the var name, or have edit as a className ( class="edit">) then (node.select('a.edit')). > > In all cases, I strongly advise to have element ids to be unique! > > hope this helps,

[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread AlannY
lement with > id="edit". When it doesn't find a unique element, it would return > undefined. > > To resolve, change the var name, or have edit as a className ( class="edit">) then (node.select('a.edit')). > > In all cases, I strongly advise to ha

[Proto-Scripty] Re: node.select in IE7

2008-11-14 Thread AlannY
; wrote: > On Thu, Nov 13, 2008 at 4:17 PM, AlannY <[EMAIL PROTECTED]> wrote: > > > Hi there. I'm working on simple script that must work on all browsers, > > which prototype supports. > > > There are code: > > var edit = node.select('a#edit')

[Proto-Scripty] node.select in IE7

2008-11-13 Thread AlannY
Hi there. I'm working on simple script that must work on all browsers, which prototype supports. There are code: var edit = node.select('a#edit')[0]; if( edit ) { ... } In Firefox and Safari this works great: the variable contain the pointer to the DOM's tag with id attribute. But in IE7 the