Android Question WebView Ajax crossDomain 403 forbidden ?

a6000000

Member
Licensed User
Longtime User
From B4A in WebViev WebVievExtras Crome Client , can not crossDomain jQuery Ajax in WLAN. is it possible?

JavaScript:
<script> // javascript jQery AJAX

$.ajax({
    crossDomain: true,
    url:"http://192.168.188.93:5555/qqgg/bla.txt"
    })

From Browser B4A - HTTPServer OK:
http://192.168.188.93:5555/qqgg/bla.txt
{key1:'val1',key2:'val2'}
 

Biswajit

Active Member
Licensed User
Longtime User
Why do you need ajax? use httpjob to download that file.
 
Upvote 0

a6000000

Member
Licensed User
Longtime User
I wanted to send direct from WebViev Button to another Phone with HTTPServer, from B4A it is clear.


I wanted to avoid the Javascript Interface:
JavaScript:
<script> // in WebView javascript

function StrgToB4A() {
        var value =  document.getElementById("inputField").value;
        // call B4A "Sub SendToHttpServer" from WebView javascript , "Android" is the Interface Name
        Android.CallSub("SendToHttpServer", true, "value");  
}

.. but I have to :)
 
Upvote 0
Top