<script>
var jqxhr = $.post("https://xxxxxxx", {
from: xxxx,
to: xxxxx
},
function(data) {
B4A.CallSub("msg_box",true, "Title",data);
})
.done(function(data) {
B4A.CallSub("msg_box",true, "Title",data);
})
.fail(function(xhr, status, error) {
B4A.CallSub("msg_box",true, "Title",133323);
})
.always(function() {
});
function bridgeactive(pagefinish){
B4A.CallSub("msg_box",true, "Title", pagefinish);
}
</script>