Re: [Proto-Scripty] $ function and IE

2011-08-30 Thread Walter Lee Davis
The easiest way around this is to write your code so it fails gracefully. Either one of these will work: $$('#noSuchElement').invoke(yourFunction); or var elm = $('noSuchElement'); if (elm) yourFunction(); The first one is my favorite, because it swallows any errors. If you're saying that

Re: [Proto-Scripty] $ function and IE

2011-08-30 Thread Shane McCarron
That's very clever. Mostly I am surprised that only IE pukes on what I assume to be a very common problem... Anyway, thanks! On Tue, Aug 30, 2011 at 3:01 PM, Walter Lee Davis wa...@wdstudio.comwrote: The easiest way around this is to write your code so it fails gracefully. Either one of

Re: [Proto-Scripty] $ function and IE

2011-08-30 Thread Shane McCarron
Actually, I lied. They ALL puke. Duh. It is just that IE is more obvious about it. I guess everyone else already knew this. I am slow ;-) On Tue, Aug 30, 2011 at 3:19 PM, Shane McCarron halindr...@gmail.comwrote: That's very clever. Mostly I am surprised that only IE pukes on what I

Re: [Proto-Scripty] $ function and IE

2011-08-30 Thread Walter Lee Davis
You're welcome. I gave up being surprised what IE does somewhere back in 1998. Walter On Aug 30, 2011, at 4:19 PM, Shane McCarron wrote: That's very clever. Mostly I am surprised that only IE pukes on what I assume to be a very common problem... Anyway, thanks! On Tue, Aug 30, 2011 at