Results 1 to 3 of 3

Thread: Question regarding Carousel demo

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    3
    Vote Rating
    0
      0  

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

    Default

    I would add a listener for the cardswitch event on the Carousel and do you Ajax request there.
    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

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    15
    Answers
    3
    Vote Rating
    0
      0  

    Thumbs up Answer

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

    });

Posting Permissions

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