1. #1
    Sencha User arlo.carreon's Avatar
    Join Date
    Jul 2010
    Location
    Orlando, TX
    Posts
    34
    Vote Rating
    0
    arlo.carreon is on a distinguished road

      0  

    Default Carousel.prev() not working?

    Carousel.prev() not working?


    I am using the next() and prev() methods for my carousel in Sencha Touch. The next() method works perfectly but prev() throws an error: Uncaught TypeError: Object [object Object] has no method 'prev'

    Here is my code sample, property "position" was added on by me:
    Code:
    // Determine whether to move forward or backward on the list
    	if( propertyCarousel.getActiveItem().position < data.position )
    		propertyCarousel.next();
    	else
    		propertyCarousel.prev();
    Like I said next works like a charm but prev does not. Has anyone had this problem before?

    *Sencha Touch v0.90

  2. #2
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    104
    Vote Rating
    5
    miroperez is on a distinguished road

      0  

    Default


    I ran into this same problem. Turns out the api docs are incorrect. I looked in the source code and the method is actually previous().

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,791
    Vote Rating
    599
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I think this has been changed in 0.91, if I look at the source for Carousel the method is "prev".
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Sencha User arlo.carreon's Avatar
    Join Date
    Jul 2010
    Location
    Orlando, TX
    Posts
    34
    Vote Rating
    0
    arlo.carreon is on a distinguished road

      0  

    Default


    Code in the Sencha Touch API say prev(). I just tried out previous() and it works perfectly. Thanks for the input!

    Working method:
    PHP Code:
    propertyCarousel.previous(); 

Similar Threads

  1. How: Datepicker next/prev Day Button
    By insnet in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 4 Jan 2013, 1:39 PM
  2. How to override pagingtoolbar for prev,next buttons
    By Rammynampati in forum Ext 3.x: Help & Discussion
    Replies: 16
    Last Post: 23 Jan 2011, 4:02 AM
  3. [OPEN] [FIXED-110] Carousel indicator breaks down after changing carousel content.
    By Mphasize in forum Sencha Touch 1.x: Bugs
    Replies: 6
    Last Post: 1 Jul 2010, 11:41 AM
  4. [FIXED-20] Carousel getActiveItem + previous not working
    By rdougan in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 11 Jun 2010, 6:04 PM
  5. Any example of DomQuery E:not(S), E:has(S), E:next(S) or E:prev(S)?
    By fjanon in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 29 Jul 2007, 9:42 AM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi