1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    4
    Vote Rating
    0
    yCD is on a distinguished road

      0  

    Default !Question about Carousel in Carousel...

    !Question about Carousel in Carousel...


    Hi all & thank you for this good Framework (i'm on 0.91),

    I had test this Framework with a big Carousel squeleton project. But Safari on ipad crashe .
    The memory manager of Safari on ipad is very bad at this time.

    Then, the solution for a big project is to load content on 'cardswitch' event.

    All work fine, but i have a lil pb to acces in Carousel in carousel 'cardswitch' event.


    A simple code example :

    Code:
    var carousel;
    var carousel3;
    
    function loadPageContent (pageH,pageV) {
      ...
    }
    
    Ext.override(Ext.Container, {
    	getIndexOfActiveItem : function() {
    		return this.layout.activeItem ? this.items
    				.indexOf(this.layout.activeItem) : -1;
    	}
    });
    
    Ext.setup( {
    			addMetaTags : true,
    			tabletStartupScreen : 'tablet_startup.png',
    			phoneStartupScreen : 'phone_startup.png',
    			icon : 'icon.png',
    			glossOnIcon : false,
    			onReady : function() {
    
    
    			carousel3 = new Ext.Carousel( {
    				indicator : false,
    				direction : 'vertical',
    				items : [ {contentEl : 'page3'}, {contentEl : 'page3a'} ]
    			});
    
    			carousel = new Ext.Carousel( {
    				indicator : false,
                                    direction : 'horizontal',
    				items : [ {contentEl : 'page1'}, {contentEl : 'page2'}, carousel3, {contentEl : 'page4'}]
    				});
    
    				carousel.on('cardswitch', function() {
    					loadPageContent(carousel.getIndexOfActiveItem());
    
    				});
    
    				carousel3.on('cardswitch', function() {
    					loadPageContent(carousel.getIndexOfActiveItem(),carousel3.getIndexOfActiveItem());
    				});
    
    .....
    carousel.on work fine, carousel3 to but no loadPageContent on carousel3 'cardswitch' have you an idea ?

    Thx for your answer.

  2. #2
    Ext User
    Join Date
    Jul 2010
    Posts
    4
    Vote Rating
    0
    yCD is on a distinguished road

      0  

    Default


    Ok...

    Thx for your answers

    I had solve the pb same that :

    Code:
    				carousel3 = new Ext.Carousel( {
    					indicator : false,
    					direction : 'vertical',
    					items : [ {
    						contentEl : 'page3'
    					}, {
    						contentEl : 'page3a'
    					} ],
    					listeners : {
    						cardswitch : function() {
    							alert('Thank u!');
    				}

  3. #3
    Ext User
    Join Date
    Jul 2010
    Posts
    4
    Vote Rating
    0
    yCD is on a distinguished road

      0  

    Default


    Resolved with a listener

Similar Threads

  1. vertical scrolling content within carousel & css question
    By Chromatik in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 26 Jul 2010, 1:35 PM
  2. Carousel question (or how can I mimic the NPR app)
    By gwthompson in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 20 Jul 2010, 6:38 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. Carousel navigation question
    By rafaelberrocalj in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 17 Jun 2010, 6:56 PM
  5. Carousel
    By doron447 in forum Ext: Q&A
    Replies: 8
    Last Post: 9 Jul 2009, 1:25 AM

Tags for this Thread

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