1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    25
    Vote Rating
    0
    bikrems is on a distinguished road

      0  

    Default Answered: How to save form data

    Hi,

    I want to save data in the form to a json file for this i have save button ,stores and models.

    What is the procedure to save the data???

    Thanks in advance

  2. It sounds like you have most everything set up for your form. However, because JavaScript is a client side language, it does not have access to your filesystem. Meaning, you can't write to a file with JavaScript alone. To do this, you would need to have a server side language capture your form's submitted data and then write the file.

    You can read more about submitting forms here:
    http://docs.sencha.com/touch/2-1/#!/api/Ext.form.Panel

    Thanks!
    Greg

  3. #2
    Sencha - Support Team
    Join Date
    Mar 2012
    Location
    Lawrence, KS
    Posts
    317
    Vote Rating
    46
    Answers
    46
    greg.barry has a spectacular aura about greg.barry has a spectacular aura about greg.barry has a spectacular aura about

      0  

    Default

    It sounds like you have most everything set up for your form. However, because JavaScript is a client side language, it does not have access to your filesystem. Meaning, you can't write to a file with JavaScript alone. To do this, you would need to have a server side language capture your form's submitted data and then write the file.

    You can read more about submitting forms here:
    http://docs.sencha.com/touch/2-1/#!/api/Ext.form.Panel

    Thanks!
    Greg

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    25
    Vote Rating
    0
    bikrems is on a distinguished road

      0  

    Default

    Thanx Greg for your reply...

Thread Participants: 1