Results 1 to 7 of 7

Thread: Is it possible to load jsondata from a flat file w/out having a localhost server?

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    48
    Vote Rating
    0
      0  

    Default Is it possible to load jsondata from a flat file w/out having a localhost server?

    Hi,

    We are evaluating the Designer tool. So far, our team has express very positive and much interests. We are playing around and creating some prototypes as prove of concepts. I was wondering if it was possible to load json data read from a flat file, which gets fed into the jsonStore url?!

    Is this possible without having to install and setup a localhost?

    Thanks.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    The JSON data must be served by some webserver. This could be on your localhost or could be on a remote server. You can set the Url Prefix by going into Edit Preferences for a particular project.
    Aaron Conran
    @aconran

  3. #3
    Sencha User mihaip007's Avatar
    Join Date
    Feb 2008
    Location
    Pretoria, South Africa
    Posts
    194
    Vote Rating
    -4
      0  

    Default

    Hi...!

    Sorry, this may sound a bit stupid from my side, but why can one not simply bypass the server and simply load from a flat file? Why must one go through the server for this operation?

  4. #4
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
      0  

    Default

    I haven't tested it, but you might be able to use a file:// URI. However, as mentioned on a different thread, we will be adding the ability to load local data into stores in a future release.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    11
      0  

    Default

    You might want to look into using the BaseX extension. You can find it by searching the forums. This will be added as a capabity in ExtJS in a future version.

  6. #6
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Vote Rating
    7
      0  

    Default

    ext-basex project page: http://code.google.com/p/ext-basex/

    Please note that this can only be used and included in your exported xds html file.

  7. #7
    Sencha User
    Join Date
    Apr 2010
    Posts
    48
    Vote Rating
    0
      0  

    Default

    @jarrednicholls, I've tried this out. Don't think it works (unless that file is stood up behind a server).

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
  •