[Proto-Scripty] Re: Safe hiding of a DOM element

2008-10-20 Thread Eric
Thanks for all your advices. $$('#pleaseWait').invoke('hide'); I do like this one, even if I am not sure why it would be a bad practice to have failsafe functions (I said functions, not methods :o) ). It is common in C++ to check if a pointer is null before freeing it. I don't see any

[Proto-Scripty] Re: Safe hiding of a DOM element

2008-10-16 Thread bluezehn
if($('pleaseWait')) $('pleaseWait').hide(); This is a classic coding issue. I disagree with you - in PHP I have strict warnings on all the time so I'm always testing whether a variable is set before accessing it. It's just a much safer way to write code. On Oct 16, 11:34 am, Eric [EMAIL