1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
    zied jouini is on a distinguished road

      0  

    Default Unanswered: consume a web service with MoSync IDE

    Unanswered: consume a web service with MoSync IDE


    salam all.
    i'm doing a mobile app using sencha touch 1. And i want to consume a web service with it. When i test my app in chrom browser, it's work correctly and the consommation of web service it's done without error. But when i try the same code on my MoSync IDE in Android emulator, i can't consume this web servervice. have you any idea? here is my code
    Code:
    var urtemp = Ext.getCmp('Login').getValue()+"/"+Ext.getCmp('password').getValue(); Ext.Ajax.request({ url: 'http://localhost:8732/log/log/'+urtemp, success : function(response) { console.log(response.responseText); var user = eval('('+ response.responseText+ ')'); App.variable = user.clientID; var nv = user.clientNOM; var pr = user.clientPRENOM; if(nv !== "null") { console.log(App.variable); Ext.Msg.alert("Bienvenue Monsieur",pr+" "+nv); Ext.redirect('Banking/compte'); window.location = redirect; } else {Ext.Msg.alert("Mot de passe ou login incorrecte","veuillez reeseyer");} }, failure: function(response) { console.log("fail"); console.log(response.status); } });
    thank you

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    We don't give support for MoSync IDE
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread