[Proto-Scripty] evalJSON() won't parse dates

2010-03-30 Thread eggie5
I have this arbitrary JSON string: [[2008-12-28,8],[2008-12-24,1],[2008-12-21,1],[2009-01-04,2], [2009-01-17,6],[2009-01-11,3],[2009-01-24,3],[2009-01-18,4], [2009-01-31,4],[2009-02-07,1]] It is a serialized array from ruby using rail's to_json method. When I try to deserialize it the dates are

[Proto-Scripty] MyTableGrid Project

2010-03-30 Thread Pablo Aravena
Hi friends I will began to work in this project again and I need your feedback for elaborating a list of enhancements and also a list of new features to be implemented in the following releases. Please go to this page a see my project: http://pabloaravena.info/mytablegrid Have an excellent day

[Proto-Scripty] Re: evalJSON() won't parse dates

2010-03-30 Thread T.J. Crowder
Hi, JSON[1] has no concept of dates. Objects, arrays, strings, numbers, nulls, that's it. Some JSON parsers (such as json2.js[2]) have the concept of a reviver object that can pre-process keys and values during the parsing process (and similarly a replacer object for handling putting things into

[Proto-Scripty] Re: getElementsByClassName

2010-03-30 Thread StephanSchipal
Dear T.J., thanks for your hint. I now use $A($$('img.IcErrorImage')).invoke('hide'); instead of $A(document.getElementsByClassName('IcErrorImage')).invoke('hide'); Works fine. But I have an other question, concerning this topic: I used: var inputControls =

[Proto-Scripty] How to do this with Function.delay?

2010-03-30 Thread Walter Lee Davis
I have this effect wrapped in a timeout: setTimeout(function(){ var elm = $('frame_index'); elm.morph('left:' + elm.origin); },300); I realize I could use the delay: attribute on the effect itself, but for reasons outside of this discussion, I need to use the Prototype delay

Re: [Proto-Scripty] How to do this with Function.delay?

2010-03-30 Thread Guillaume Lepicard
hi, you should try Element.morph.delay(0.3, 'frame_index','left:' + origin) On Tue, Mar 30, 2010 at 6:34 PM, Walter Lee Davis wa...@wdstudio.comwrote: I have this effect wrapped in a timeout: setTimeout(function(){ var elm = $('frame_index'); elm.morph('left:' + elm.origin);

Re: [Proto-Scripty] How to do this with Function.delay?

2010-03-30 Thread Walter Lee Davis
Aha. Thanks! Walter On Mar 30, 2010, at 12:38 PM, Guillaume Lepicard wrote: hi, you should try Element.morph.delay(0.3, 'frame_index','left:' + origin) On Tue, Mar 30, 2010 at 6:34 PM, Walter Lee Davis wa...@wdstudio.comwrote: I have this effect wrapped in a timeout:

Re: [Proto-Scripty] Re: getElementsByClassName

2010-03-30 Thread green
Hi, what is FokusControls? is it a defined class name? If you want to use it with $$ syntax, you could go with $$('.FokusControls'). Actually $$() support all CSS2 selectors. You should be able to get CSS2 selector reference at http://www.w3.org/TR/CSS2/selector.html On Wed, Mar 31, 2010 at 2:47