[Proto-Scripty] [Proto] Coding disabled on a link

2009-09-14 Thread Arnaud F.
Hello, i need to disable a link in some case. What I do actually is something like this : var a_create = new Element('a', { id : 'btn_create', href : 'javascript:linkOnClick();', innerT

[Proto-Scripty] [Prototype] Encounter a bug in endsWith ?

2009-08-10 Thread Arnaud F.
Hello, I don't know why but : input = 'prototypes' bool = input.endsWith('n'); bool = bool || input.endsWith('s'); alert(bool); works fine but : alert(input.endsWith('n') || input.endsWith('s')); return me an error (IE6) What I've do wrong? Thanks --~--~-~--~---