1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    26
    Vote Rating
    -1
    Answers
    1
    ananthk is an unknown quantity at this point

      0  

    Default Unanswered: Rest calls to be used in writer.js and How to persist the records w/o a DB

    Unanswered: Rest calls to be used in writer.js and How to persist the records w/o a DB


    How to make Writer.js - PHP example Ajax rest calls to really work? What is the configuration for the server side. If a record is entered will it persist? I am able to get it to work in Session But if the session is lost the data is lost. how to fix this without using any DB? Is there any way ?

  2. #2
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Vote Rating
    86
    Answers
    31
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default


    What are you trying to accomplish?

    If you don't save the data to a database, a file, or some other persistence media, what do you expect to be able to happen?

    There are options, of course, for saving to LocalStorage, but this has its own issues of impermanence, access restrictions, etc.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    26
    Vote Rating
    -1
    Answers
    1
    ananthk is an unknown quantity at this point

      0  

    Default


    Ok Thanks. I just wanted to find out if there are any other ways. You suggested the Local storage but it not worth all the effort. But this is an API that works in session which is great

  4. #4
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    522
    Vote Rating
    86
    Answers
    31
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default


    Quote Originally Posted by ananthk View Post
    Ok Thanks. I just wanted to find out if there are any other ways. You suggested the Local storage but it not worth all the effort. But this is an API that works in session which is great
    Sure thing.

    And to be clear, it's not technically a matter of ExtJS working in PHP sessions. The REST proxy in ExtJS is agnostic of what you do with the request that's made to the server; the only prerequisite is that your server is capable of understanding the request that is made...how you deal with it after ExtJS makes the request to the server (session, DB, writing to file system, third-party cloud db hosting, whatever) is completely up to you.

Thread Participants: 1