Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: A login form before entering into the App?

  1. #11
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Ok, Jerome did a great job helping me... but I keep getting stuck. For example, how do I grab the values in the php file and return it back to the Sencha Touch framework?

    The documents are helpful, but they don't explain half of what I need. Just like the Ajax function, it shows me how to include the function and how to use it; but not very well on how to manage the data being sent and returned... How did you all learn and become experts in this framework?

  2. #12
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    101
      0  

    Default

    What's done on the server/database side really has nothing to do with this framework. That's all written in other languages like PHP, RPG, etc. That website, Parse.com, offers a very easy to use API that handles the database calls and has many examples of how to use them. Their databases are also very organized and visual.

  3. #13
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
      0  

    Default

    I understand that it's not part of the framework, but when I use the Ajax function, how do I know what format the data is being passed in? Most of the time, in PHP, I'll use either the "$_GET['fieldname']" or "$_POST['fieldname']" to grab the data. Parse.com looks like a nice site and well known, but I already have my own database and I have a php mobile site already buit. I would just like to switch it over and use the UI/Theme Sencha Touch has to offer..

  4. #14
    Sencha User
    Join Date
    Jul 2012
    Posts
    10
    Answers
    1
    Vote Rating
    1
      2  

    Default

    Getting a response from the server is pretty straight forward, take a look at this video: http://docs.sencha.com/touch/2-0/#!/...etting_started and use the blog part as a guide for setting up your request to your server.

    What you need to realize though, is that the json response you get, is a string, so you need to decode it(When you code in javascript normally, you think of json as a series of javascript objects) using Ext.JSON.decode(response.responseText).

    using a jsonbeautifier you can see then how to access the values.

Page 2 of 2 FirstFirst 12

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
  •