I have this code within a javascript function:

        function load(test) {
            var coordinates = new Array();
            coordinates = <%= params[:coordinates] %>
        }

the params contains an array with double digit numbers such as
[24,45], but when it is converted within the javascript function, it
turns into one long number, i.e. 2445.  I found this by doing an
alert() with the result.  I don't really know much about javascript,
so Im not sure if this is an integer or a string or what, but
ultimately I need to get these original two digit numbers separated
and into a javascript array.   I tried performing some javascript
string operations but they do not seem to be working.  Any one have
any ideas here?
Thanks, Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to