I have text file which contains list of lonlat points. I want to send this to perlscript through ajax call . How to do it ? My code is
$.ajax({type:"POST",
url:"softTouchurl",
type:"Text",
data:{file:'pointsArray.txt',action:'showPoints'},
success:function(response){
if(response.success) {
alert("success");
}
}
});