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,
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
; 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')
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