Results 1 to 2 of 2

Thread: Help with persistent file changes with Sencha Touch applications.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Help with persistent file changes with Sencha Touch applications.

    So essentially I am curious as to how to achieve this with my Sencha Touch application. My application includes a log-in form authentication and an aspect of the application allows the user to explore a list of documents/files which are hosted on the same server as the application and is unique to that specific user.

    I want the user to be able to select the file within the application(commonly .pdf) and the device browser will choose or present a list of choices of third-party applications which will allow the user to view/edit the document(adobe reader, etc), assuming that Sencha doesn't have a utility which allows the user to view/edit PDF documents. Once the user has made any changes to the document and has closed and "saved" the document, the Sencha Touch application should return, bypassing the log-in form, and these changes should persist on any future occasions of opening the file.

    Therefore, if the user chooses to re-open that document, he should see the same document that he had modified previously rather than a newly downloaded copy of that document from the server. What are the possible ways to achieve this, since I am fairly new to web applications?

    I know that possibly with a normal mobile application, you can save the information locally on the device and choose to load the information from the device if it is available in storage, but I'm not sure how to achieve this with the Sencha Touch web application.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Vote Rating
    1297
      0  

    Default

    I think you are expecting too much. If the file will be on a remote server, you will need a server side script to handle saving and creating the PDF.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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
  •