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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    You can specify the callbackName config but it will prefix 'Ext.data.JsonP.' and append the number counter.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •