Skip to content

Webservice call not working #65

@PassHours

Description

@PassHours

This code is written to call a web service. It works perfectly well when the SDK version is 5.1.1.GA. But when the version is changed to 6.0.2.GA..the service is not getting called. No error is thrown. Doesn't the version maintains backward compatibility. Could someone pls check and let me know? Thanks

var serviceCall = '$.ajax({' + 'url: "' + args.endPointURL + '" ,' + 'type: "' + args.serviceType + '",' + 'contentType: "application/json",' + 'data: ' + JSON.stringify(args.requestBody) + ',' + 'dataType: "json",' + 'success: function (msg, textStatus, XHR) {' + 'msg = JSON.stringify(msg);' + 'Ti.App.fireEvent("app:serviceSuccess", { message: msg, XHR: XHR});' + '},' + 'error: function(XHR, textStatus, errorThrown) {' + 'Ti.App.fireEvent("app:serviceError", { textStatus: textStatus, XHR: XHR});' + '},' + 'timeout: ' + timeout + '});';

var htmlView = '';
htmlView += '';
htmlView += '<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>';
htmlView += '<script type="text/javascript">' + serviceCall + '</script>';
htmlView += '';
htmlView += '';
htmlView += '';

$.serviceWebView.html = htmlView;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions