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 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,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

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

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

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
  •