I am trying to pass an array from Java to JavaScript by converting the
array into a string with the help of delimiter and later splitting in
JavaScript with the split function in JavaScript. Now the problem
arrives if I display String in the form of alert the String is coming
in the JavaScript and is displaying the right output which I want but
the split function doesn't work here for unknown reason but the same
function works if I give the String for same name with the same type
of values defined in the code. The problem is in JavaScript for sure
as the string I am fetching from is being displayed in alert. Please
suggest something, I worked on the problem on emulator only.


This is the function in JavaScript
                function load()
                {
                //var stringFromJava =  
"Nishant|Amit|Ankit|Ashok|Working|Ishaan|
Hallelujah|Floor|Haroon|Fish|Wasim|";
                var stringFromJava = window.cname;
                var names = stringFromJava.split("|");
                sortnames(names);

                }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to