Hi I've been having some problems with my string splitting thingy.
server outputs something along these lines:
and these are the ways I tried to make it work
var dresponse = Titanium.Utils.base64decode(this.responseText); var drespondejs = dresponse.split("###"); *crash*
var dresponse = Titanium.Utils.base64decode(this.responseText); var bytes = Titanium.Api.createBlob(dresponse); var drespondejs = bytes.split("###"); *crash*
I had various alerts sprawled around the code for debugging purposes and I've narrowed down to the string splitting zone and I would be very thankful if someone could help me.
Thanks in advance
EDIT: I've also made a quick change on the server output so it barfs out something like:
but when I try to eval the result it also crashes, can somebody tell me what am I doing wrong? :(
Thanks for the answer Vineet…it worked perfectly for me! :)