Hi! guys i'm using jquery to do some interesting interaction in a sms sending web application.from a textbox where the user should write the phone number(numbers are comma separated) after writing a comma the application extract that number and send it through jquery ajax function for number validity.so far everything is cool even though i know that my function extracting is not perfect(coz it becomes buggy when the first comma is pressed and then the number is edited if somebody fell to give better algorithm i would be pleased).the problem arises when collecting the response from the webform.the response which a boolean is actually sent with this Response.write(response).when i display it from an alert function is dispay something like
true //if it's correct or false if not and something like this
Untitled Page
how do i extract actually the value true or false. my code is not seeing the true but always execute the statment in case it's false even though i have it true and displayed as described in my checkout alert function here are my codes. this is the one using the jquery ]]> ]]> Untitled Page #vall { color: #0000FF; width:30px;float:left;margin-left: 10px} #err { color: #FF0000; width:30px;float:left;margin-left: 10px} $().ready(function(){ var i = -1; $('#txtNumbers').keyup(function(e){ var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; if(key== 188) { var y = $(this).val(); if(y.length!= 0 ) { var n = y.substring(i+1,y.lastIndexOf(',')); i = y.las</x-turndown>