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
    Gainesville, FL
    Posts
    36,633
    Answers
    3452
    Vote Rating
    818
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 in print!

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

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    15
    Answers
    3
    Vote Rating
    0
    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
    }
    }

    });