1. #11
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
    Colorado143 is on a distinguished road

      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,135
    Answers
    129
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      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
    Colorado143 is on a distinguished road

      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
    omkohmann is on a distinguished road

      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.

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar