Results 1 to 7 of 7

Thread: What does limit=25 means _dc=somenumber means in AJAX Request

  1. #1
    Sencha User vishalnnsingh's Avatar
    Join Date
    Sep 2010
    Location
    Kolkata, India
    Posts
    115

    Default What does limit=25 means _dc=somenumber means in AJAX Request

    What does limit=25 and _dc=somenumber means in AJAX Request?

    and if unimportant, how can i remove them?
    I Meet Challenge with Excitement & My Only Gossip is Love

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

    Default

    limit would be used for paging. Basically it's send that param to request only 25 results.

    When you see _dc, that param is what's called a cache busting param. The numbers are a Unix timestamp of the time the request is made. If you want to make sure your server doesn't send a cached version of your data, use this param. If you would like to get cached results, disable it.
    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 jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    the cache buster is more important for the client side as well as intermediate proxies. I would just leave it on.

  4. #4
    Sencha User vishalnnsingh's Avatar
    Join Date
    Sep 2010
    Location
    Kolkata, India
    Posts
    115

    Default

    Thank you so much for the replyin.
    The information was really helpful.
    I Meet Challenge with Excitement & My Only Gossip is Love

  5. #5
    Sencha User vishalnnsingh's Avatar
    Join Date
    Sep 2010
    Location
    Kolkata, India
    Posts
    115

    Default

    Can you please suggest me how to remov these two params.
    I Meet Challenge with Excitement & My Only Gossip is Love

  6. #6
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    I'd like to know why you want to disable cache busting?

  7. #7
    Sencha User vishalnnsingh's Avatar
    Join Date
    Sep 2010
    Location
    Kolkata, India
    Posts
    115

    Default

    Actually m making an ajax call to an external server which belongs to my client.
    This is my store
    Code:
    var userInfo = new Ext.data.Store({
    			model:'MainUser',
    			proxy:{
    				type:'ajax',
    				url:'http://www.xxx.com/api/v1/users',
    				extraParams:{
    					oauth_token:OauthToken,
    					oauth_token_secret:OauthTokenSecret
    				},
    				reader:{
    					type:'xml',
    					record:'user'
    				}
    			},
    			autoLoad:true
    		});
    It is supposed to return me an xml response, but i get a blank response.
    and firebug shows me an eror.
    This is the corresponding php code
    PHP Code:
    dbConnect();
        header("Content-type: text/xml");
    //some code
    //some code
      $output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><user><id>".$user->getIdUser()."</id><username>".$user->getFirstName()." ".$user->getLastName()."</username></user>";
                }
            }else{
                $output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><user><id>".$user->getIdUser()."</id><username>".$user->getFirstName()." ".$user->getLastName()."</username></user>";
            }
            echo $output;
    Really don't know what to do, thought the extra param is creating an issue, i know its funny tough.
    Whenever i say that there is sth wrng wth the php code, the client tries to help me out by showing a form which take two params as the form input if you submit it, it redirects you to a page (standard submit) where the xml is displayed, which kind of makes me feel that i am doing something wrong.
    I Meet Challenge with Excitement & My Only Gossip is Love

Similar Threads

  1. what means this sintaxis?
    By geed64 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 27 Jul 2010, 2:48 PM
  2. what means of this firebug error?
    By dannyg in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 23 Dec 2009, 4:26 AM
  3. what does jsonstore.idproperty means?
    By LoveCode in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 28 Sep 2009, 4:24 AM
  4. what means FNR?
    By Arno.Nyhm in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 30 Jul 2009, 6:12 AM
  5. what means property point of dropEvent?
    By cecol in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 22 Aug 2007, 7:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •