I have made a ajax call to java servlet from where i am retrieving data and storing on success in data ..Here is my code...
var s1="";
var ticks ="";
$('#view').click(function(evt){
alert('hi');
evt.preventDefault();
$.ajax({
url:'getdata',
type: 'GET',
success: function (data) {
console.log(data);
alert(data);
}
});
});
Here is the values in data on success..
[239, INCOMING, 30, INETCALL, 7, ISD, 55, LOCAL, 44, STD]
Now as per my need i want this value to be in the variables..
s1=239,30,7,55,44 and tics=INCOMING,INETCALL,ISD,LOCAL,STD
Any help will be highly appreciated..