Here is a JavaScript code snippet that I am working with:
var a=camera.getDetails();// (say a=["1","2"] as arraylist/array)
var c=new Array(a);
alert(c);
window.location="my_details.html?"+c.join(",")+ "_";
Now, in my_details.html, the following code is executed:
var q=window.location.search;
alert("qqqqqqqqqqqqq " + q);
var arrayList = (q)? q.substring(1).split("_"):[];
//arrayList=arrayList.split("%20");
var list=new Array(arrayList);
var s=decodeURIComponent(list).split(",");
//var str=s.split(",");
var a=s[5];
alert("dataaaaaaaaaaaaaaa " + s + "kkkllll "+ a + "jgkjhgjk" );
I am trying to figure out how to remove the "]" character from the value in s[5]
array and also the "[" character from s[0]
.