Results 1 to 2 of 2

Thread: consume a web service with MoSync IDE

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Tunisia
    Posts
    74
    Vote Rating
    1
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,320
    Answers
    3883
    Vote Rating
    1293
      0  

    Default

    We don't give support for MoSync IDE
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •