Results 1 to 4 of 4

Thread: Ext.direct.PollingProvider makes a strange request for direct/undefined.js

  1. #1

    Default Ext.direct.PollingProvider makes a strange request for direct/undefined.js

    Hi,

    I was trying out Ext.direct.PollingProvider as I wanted to periodically retrieve data from the server.
    The server returns a JSON formatted response on PollingProvider request. After making each request, the client makes a strange file request for direct/undefined.js. I don't understand why such request is araised.

    Client Code:


    Code:
    Ext.direct.Manager.addProvider({
                type:'polling',
                url: 'data/status.json?query=stsreq'
            });
            Ext.direct.Manager.on('event', this.onPollingEvent, this);
            Ext.direct.Manager.on('exception', this.onPollingException, this);
    Chrome Browser Log

    XHR finished loading: "http://localhost:1980/app.json". development.js:16
    [WARN][Anonymous] [Ext.Loader] Synchronously loading 'Ext.direct.PollingProvider'; consider adding 'Ext.direct.PollingProvider' explicitly as a require of the corresponding class Console.js:35
    XHR finished loading: "http://localhost:1980/sdk/src/direct/PollingProvider.js?_dc=1347607031979". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/direct/JsonProvider.js?_dc=1347607031990". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/direct/Provider.js?_dc=1347607032002". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/util/DelayedTask.js?_dc=1347607032052". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/data/ArrayStore.js?_dc=1347607032063". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/data/reader/Array.js?_dc=1347607032095". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/direct/ExceptionEvent.js?_dc=1347607032106". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/direct/RemotingEvent.js?_dc=1347607032116". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/sdk/src/direct/Event.js?_dc=1347607032173". sencha-touch.js:7743
    XHR finished loading: "http://localhost:1980/data/status.json?query=stsreq&_dc=1347607035184". Connection.js:314
    [WARN][Anonymous] [Ext.Loader] Synchronously loading 'direct.undefined'; consider adding 'direct.undefined' explicitly as a require of the corresponding class Console.js:35

    Would be nice if I could know the reason or a workaround.

    Praveen

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Check out the response when the api script tag returns.

    Also, you need to require the Direct classes.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    2

    Default Did you figure out whats happening?

    I'm noticing the same behavior. For every successful polling call there is another one going to direct/undefined.js.

    Any ideas on whats happening?

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    2

    Default

    Ok looks like extjs REQUIRES the data to be in a certain format


    {"type":"event","name":"message","data":"Successfully polled at: 9:58:59 pm"}

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
  •