Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    25
    Vote Rating
    0
    sapkalparag is on a distinguished road

      0  

    Default JSONP loading problem

    JSONP loading problem


    Hi

    I am trying to populate a simple list witha data from a json. Each entry contain only 3 fields.

    i set up my json store , proxy and also the reader as given on the architect docs page...
    http://docs.sencha.com/architect/2-0...tores_examples

    i have put my userData.json in the folder as.....

    /NavigationExample/app/data/userData.json

    where NavigationExample is my project.
    the URL prefix is set in settings as http://localhost:8080/Projects/NavigationExample

    while in JSONProxy I have set url as - http://localhost:8080/Projects/Navig.../userData.json
    when i load the store..it gives an error saying

    Unable to load data using the supplied configuration.
    Open in Browser: http://localhost:8080/Projects/Navig.../userData.json

    when click on the link the json file perfectly opens in the browser.
    Where am i going wrong?
    Thanks in advance

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,064
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Are you using JSON-P? Have you wrapped your json data in a callback? It looks like you are using static json data and should be using a json proxy.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    25
    Vote Rating
    0
    sapkalparag is on a distinguished road

      0  

    Default Thank You

    Thank You


    Hi aconran

    Thanks alot for ur help. I got myself educated because of your reply. N i could load my json data in the project. Thanks alot.

    Going to try the same with XML data soon. Might have to come back as i m still a newbie.

    Thanks again for your help.

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    38
    Vote Rating
    0
    dboy221 is on a distinguished road

      0  

    Default


    I am having the same issue. I have a wcf (.net) service that is called and is resolved and returns the json formatted data. Aconran can you explain more about the callback. I'm using JSONP as the proxy type and for the reader I have provided json as the type.

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,064
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Quote Originally Posted by dboy221 View Post
    I am having the same issue. I have a wcf (.net) service that is called and is resolved and returns the json formatted data. Aconran can you explain more about the callback. I'm using JSONP as the proxy type and for the reader I have provided json as the type.
    JSONP is typically used in environments where you must load data from a different domain. If you are trying to load data from the same domain, you really should be just using a simple AjaxProxy and JSONReader.

    The callback is the function that wraps around the data. Take a look at this details description on wikipedia:
    http://en.wikipedia.org/wiki/JSONP
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    38
    Vote Rating
    0
    dboy221 is on a distinguished road

      0  

    Default


    Thanks for the wiki reference. That really helped as I was able to load the data in the store using "Load Data" However, when I preview my app live in the browser it does not show the data being pulled in.

  7. #7
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,064
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Did you set the autoLoad configuration on Store or programatically invoke the load method on it?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  8. #8
    Sencha User
    Join Date
    Jul 2012
    Posts
    38
    Vote Rating
    0
    dboy221 is on a distinguished road

      0  

    Default


    Quote Originally Posted by aconran View Post
    Did you set the autoLoad configuration on Store or programatically invoke the load method on it?
    Actually, I was able to find out that my wcf service needs to be configured to support JSONP. Working on doing this now.

  9. #9
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Vote Rating
    0
    Zaina.Alyahya is on a distinguished road

      0  

    Default


    Quote Originally Posted by aconran View Post
    Did you set the autoLoad configuration on Store or programatically invoke the load method on it?
    I'm facing the same problem: getting the same message when I try to load data from store, although the link works perfectly on browser and retrieves all available data.
    how should the autoLoad be configured on Store?

  10. #10
    Sencha User
    Join Date
    Feb 2013
    Posts
    16
    Vote Rating
    0
    avrmraja is on a distinguished road

      0  

    Default Not able to load data using jsonp using sencha architect2

    Not able to load data using jsonp using sencha architect2


    Hii... managed to display data using a webservice url in list with


    navigation view in the designer part of sencha architect2 but when it


    runs in browser it displays empty then upon some reference for cross


    domain heard JSONP should be used.. But not able to even load data to


    store using jsonp.. It displays error "unable to load data with


    specified configuration".. I loaded model using rest proxy, even i


    changed it to jsonp and ajax but result is same..is ter any changes to


    be made..
    Thanks in advance!!!