1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    3
    Vote Rating
    0
    scloh is on a distinguished road

      0  

    Default Unanswered: Question regarding Carousel demo

    Unanswered: Question regarding Carousel demo


    Hi,

    I just found the Carousel demo at Github, it's really brilliant. Currently i would like to know, when every time swap on card and i would like to do a Ajax post data to server, where should i insert my ajax code?

    Thank you.

    Sorry administrator, i post this in wrong forum. Please help me move this post to Q&A section.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,624
    Vote Rating
    435
    Answers
    3106
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    I would add a listener for the cardswitch event on the Carousel and do you Ajax request there.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    14
    Vote Rating
    0
    Answers
    3
    sangampandey is on a distinguished road

      0  

    Thumbs up Answer

    Answer


    var carousel = Ext.Carousel({
    id:'carousel',
    activeitem:'0',
    items:[item],
    listener:{
    cardswitch:{
    // the ajax call here
    }
    }

    });