1. #1
    Sencha - Services Team Stju's Avatar
    Join Date
    Dec 2008
    Location
    Redwood city, California
    Posts
    284
    Vote Rating
    1
    Stju is on a distinguished road

      0  

    Question Ext.Direct grid update

    Ext.Direct grid update


    Hi!
    Just became tired trying to solve correct JSON response from server after grid update..
    Getting all the time if Firebug error:
    Code:
    uncaught exception: Ext.data.DataReader: #update received invalid data from server. Please see docs for DataReader#update and review your DataReader configuration.
    JSON response from server which I tried:
    Code:
    {"type":"rpc","tid":6,"action":"systemUsersDIRECT","method":"updateConn","result":"true"}
    Thank's in advance!

  2. #2
    Ext User
    Join Date
    Mar 2009
    Location
    Russia
    Posts
    19
    Vote Rating
    0
    Raz0r is on a distinguished road

      0  

    Default


    the same thing

  3. #3
    Ext User
    Join Date
    Nov 2009
    Posts
    1
    Vote Rating
    0
    punhygis is on a distinguished road

      0  

    Default


    To use:
    Create a folder in your CF project, for now i will call it "servicebus". Extract these 3 files into that folder.

    After all of your standard page includes for javascript and CSS, link the Api.cfm page.
    <script src="servicebus/Api.cfm"></script>
    Configure where your router is located in Direct.cfc:
    <cfset variables.routerUrl = 'servicebus/Router.cfm' />
    When your page now loads it will be creating an api descriptor in a javascript variable called Ext.ss.APIDesc.

    You can configure this in the Api.cfm page:
    <cfset args['ns'] = "Ext.ss" />
    <cfset args['desc'] = "APIDesc" />
    In order to start using Ext.Direct on the client side you will now have to add the API Descriptor as a provider within Ext.Direct.
    var provider = Ext.Direct.addProvider(Ext.ss.APIDesc);
    This is the generic setup, however we have not exposed any of our service CFCs yet. In order to expose a CFC, place it in the servicebus directory and add the ExtDirect meta attribute to the CFC and to each method you want to expose. For example:
    <cfcomponent name="Echo" ExtDirect="true" >
    <cffunction name="send" ExtDirect="true">
    <cfargument name="data" required="true" />

    <cfreturn data />
    </cffunction>
    </cfcomponent>
    You will now be able to execute the Echo method after importing it (with addProvider).

    Ext.ss.Echo.send('sample', function() {
    // callback here...
    });

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar