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. #21
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    As you can see from my implementation, dozens of requests can be outstanding at once. It posts several flickr calls to get details about each image found.

    Timeout is the only error we can detect.

    What happens inside a <script> tag is up to what YOU send from the server. All I can detect is that the specified callback did not get called within a given time.

  2. #22
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    The server must have the ability to wrap the returned data in a callback function in order to be called using a script tag. A script tag pulls in executable code, that is what they do.

    The flickr api offers this.

    If you are in control of your server, you can write your server-side script/servlet to detect whether there is a callback function name passed (You can specify what the parameter name for this is in the callbackParam option of the request call.

    If you want to return XML, then you will have to return it by passing a STRING, a quoted string into the callback function.

    My script handling code will parse this, and you will recieve a responseXML property in the response.

  3. #23
    Ext User
    Join Date
    Nov 2007
    Posts
    68
    Vote Rating
    0
    markpele is an unknown quantity at this point

      0  

    Default


    I have some questions:

    1. Can you post your code as an extension in the wiki?

    2.
    Code:
     if (o.scriptTag || this.scriptTag) {
          this.transId = this.scriptRequest(method, url, cb, p, o);
    } else {
          this.transId = Ext.lib.Ajax.request(method, url, cb, p, o);
    }
    this.transId is actually trans which contains transId inside it. I understand why you named it transId but is it possible to change the name to something more intuitive if it`ll make it into ext.

    3. In my case I can`t change the server code and it always name the callback function the same. I modified the code and commented out the part which defines and destroys the function:
    Code:
    var conn = this;
            window[trans.cb] = function(o){
            conn.handleScriptResponse(o, trans);
    };
    I also had to change the rest of the code because you send trans to handleScriptResponse and I can`t. Is it possible to add a config option for the code so the user can define if the name of the callback be a constant and in the user responsibility to create and destroy?
    Do you think that my case is too special to include in your code?

    Best,
    Mark Pele

  4. #24
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    In the latest drop, you can specify what the callback function name is. Use the option callbackName in the request parameter object.

    It now has:

    Code:
    ...
            var trans = {
                id : transId,
                cb : options.callbackName || "stcCallback"+transId,
                scriptId : "stcScript"+transId,
                options : options
            };
    ...
    "this.transId" is in the original. It identifies a current Ajax request allowing cancelling. The posted code hasn't been updated to cancel script requests, but I'll get around to it.

  5. #25
    Ext User
    Join Date
    Nov 2007
    Posts
    68
    Vote Rating
    0
    markpele is an unknown quantity at this point

      0  

    Default


    Is this a mistake:
    Code:
    handleScriptFailure: function(trans) {
            this.trans = false;
    or should it be:
    Code:
    handleScriptFailure: function(trans) {
            this.transId = false;
    I know I can define the callback name.

    My problem is that I need to send two requests at the same time but have to use the same callback name. In this case each response will delete the window[trans.cb] function and each request will override the last definition of that function.

  6. #26
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    You don't create the callback function which the server calls, Ext.Ajax.request does that. It creates a new handler function for each request.

    If you want a callback called with that data, you pass it as a success handler into Ext.Ajax.request.

  7. #27
    Ext User
    Join Date
    Nov 2007
    Posts
    68
    Vote Rating
    0
    markpele is an unknown quantity at this point

      0  

    Default


    Either I don`t understand something or can`t explain what I`m trying to do.

    It`s possible to define the callbackName or to use auto generated one:
    Code:
    scriptRequest : function(method, url, cb, data, options) {
            var transId = ++Ext.data.ScriptTagProxy.TRANS_ID;
            var trans = {
                id : transId,
                cb : options.callbackName || "stcCallback"+transId,
                scriptId : "stcScript"+transId,
                options : options
            };
    The server wrap the response with options.callbackName or stcCallback+transId.
    When the script is loaded it calls the function which is defined here:

    Code:
    var conn = this;
            window[trans.cb] = function(o){
                conn.handleScriptResponse(o, trans);
            };
    My server respond every time with the same callback and I can`t change the code. Let`s call it "serverCallback". I can`t send two requests because the second one will run over window[trans.cb]. I have to send my requests in sync.

    What I`m trying to do to is to comment out the part that define window[trans.cb] and the part that remove this function and move it outside of the class.

  8. #28
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    165
    Vote Rating
    0
    ericd is on a distinguished road

      0  

    Default Does this extension support more than just XML

    Does this extension support more than just XML


    This looks like a nice extension to have, but looking at the code, it seems to only support XML, or am I wrong? What about if a remote server sends JSON vs XML (which is my case)

  9. #29
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It supports passing data directly into Javascript, for example "JSON".

    See http://extjs.com/forum/showthread.php?t=18653 for an example which uses the flickr and Yahoo REST APIs to receive JSON.

    markpele.

    You do NOT have to define what that callback is.

    Show us your code, and I'll correct it.

  10. #30
    Ext JS Premium Member
    Join Date
    Mar 2007
    Posts
    165
    Vote Rating
    0
    ericd is on a distinguished road

      0  

    Default


    Animal,

    Thanks for the quick reply, but after looking at your sample (flickr) i have figured it out and you beat me to the punch, btw... that extension is a keeper!