[Proto-Scripty] A better way to check for an element.

2009-09-18 Thread Luisgo
Hey all, I was wondering if you can suggest a better way of achieving what this snippet does. I do it often enough that it starts bloating my code and frankly just gets annoying to type. var some_button = $('some-button') if ( some_button ) {

[Proto-Scripty] Need clarification or guidance regarding arrays/hashes

2009-06-10 Thread Luisgo
I've been a long time user of prototype and feel very comfortable in most areas but this keeps coming up and I find it very annoying. I have a hash that, as the code executes is filled with numeric ID's as hash variable names. I basically need it to end up sort of like this: {

[Proto-Scripty] Re: Problems with the down() function and the new Browser Generation

2009-06-10 Thread Luisgo
Tears of joy!!! Thank you for this. I have been changing a ton of code thinking the problem was in prototype and it was simply that I was using IDs just like you. I added a simple freaking character to the IDs and presto! I had already filed a ticket for this here: