Link to home
Start Free TrialLog in
Avatar of westdh
westdhFlag for United States of America

asked on

Help, I cannot convert this code from C# to VB.net

var xhr = Titanium.Network.createHTTPClient();
xhr.onload = Function(){
    var JSON = JSON.parse(this.responseText);
    If (!JSON) {
        Titanium.API.info('Error - Null return!');
        return;
    }
    // Do something With Object "json" !!!
};

xhr.open('GET', 'http:///mapbizlocator.com/wwwroot/json.ashx');
xhr.send();
ASKER CERTIFIED SOLUTION
Avatar of plusone3055
plusone3055
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of westdh

ASKER

I tried that and all the other converters too.
they all give me this error.
 line 1 col 1: EOF expected

var xhr = Titanium.Network.createHTTPClient();
xhr.onload = Function(){
    var JSON = JSON.parse(this.responseText);
    If (!JSON) {
        Titanium.API.info('Error - Null return!');
        return;
    }
    // Do something With Object "json" !!!
};

xhr.open('GET', 'http:///mapbizlocator.com/wwwroot/json.ashx');
xhr.send();
Avatar of westdh

ASKER

Thanks