Results 1 to 6 of 6

Thread: Customize JSONP callback method name?

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default Answered: Customize JSONP callback method name?

    Is there a way I can configure my Sencha application so that the JSONP function doesn't have to be 'Ext.data.JsonP.callback1' and can be, say, 'callback123' instead?

  2. Quote Originally Posted by weslowsk View Post
    can you post the link to the ticket?
    http://www.sencha.com/forum/showthread.php?189565

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You can specify the callbackName config but it will prefix 'Ext.data.JsonP.' and append the number counter.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    I can live with that...can I put in a feature request to make that callback name completely customizable? For times when the JSONP service I'm calling isn't flexible...

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by weslowsk View Post
    I can live with that...can I put in a feature request to make that callback name completely customizable? For times when the JSONP service I'm calling isn't flexible...
    There is already a ticket opened for this.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    can you post the link to the ticket?

  7. #6
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Quote Originally Posted by weslowsk View Post
    can you post the link to the ticket?
    http://www.sencha.com/forum/showthread.php?189565
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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