On Nov 17, 8:22 pm, "Bastian Feder" <[EMAIL PROTECTED]> wrote:
> sure I meant "rows" instead of "this". sry.

Thanks for your help, it doesn't work. I'm just half-understanding
what bind do, but I now think in my example I've just mis-understood
(or rather overlooked) that dom:loaded event is fired AFTER the rest
of the script is executed as in

                var rows;
                document.observe( "dom:loaded", function() {
                        rows = [{"first":"Robert","last":"G"},
{"first":"Honza","last":"K"}];
                        alert( '1: ' + Object.inspect(rows) );
                })
                alert( '2: ' + Object.inspect(rows) );

Second alert is shown first and by that time rows variable is still
empty... Oh well... I should have simplified it sooner but I was
blinded by this cool Ajax thing... :-(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to