Click here to Skip to main content
Sign Up to vote bad
good
See more: ExtJS
Hey guys,
 
I'm building an EXT JS project with a grid. Its store is defined with the following:
 
createStore     :  function() {
       var me = this;
       me.createDataModel();
       var store = Ext.create("Ext.data.Store", {
           model       :  "tescoModel",
           id          :  "tescoStore",
           autoLoad    :  true,
           remoteSort  :  true,
           pageSize    :  20,
           proxy       :  {
               type            : "ajax",
               url             : "http://www.techfortesco.com/groceryapi_b1/restservice.aspx",
               limitParam      : undefined,
               startParam      : undefined,
               simpleSortMode  : true,
               pageParam       : undefined,
               noCache         : false,
               actionMethods   : {
                   method  : "POST"
               },
               reader           : {
                   type            : "json",
                   root            : "Products",
                   totalProperty   : "TotalProductCount"
               }
          }
       });
 
This however is not returning anything at all, it won't even make a connection to http://www.techfortesco.com....
I believe that extjs only allows to make connections to internal links (e.g. /techfortesco).
 
Is it possible for extjs to create a store from an external link? Am I doing something wrong?
 
Thanks
Posted 7 Jan '13 - 5:56
Edited 7 Jan '13 - 6:06

Comments
richcb - 7 Jan '13 - 12:00
This is not a question. Please provide more detail on what you are trying to accomplish and specify what your problem is.
Member 9736263 - 7 Jan '13 - 12:06
Sorry about that, I've updated my question, hopefully it is more clear.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 355
1 Arun Vasu 345
2 Sergey Alexandrovich Kryukov 338
3 Maciej Los 208
4 Zoltán Zörgő 189
0 Sergey Alexandrovich Kryukov 9,755
1 OriginalGriff 7,559
2 CPallini 4,018
3 Rohan Leuva 3,362
4 Maciej Los 2,951


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid