Pablo Cabana
24 Jun 2010, 1:23 PM
Hi, first of all CONGRATULATIONS for Sencha Touch. It sounds VERY promising.
I am not used to javascript and I am trying to learn it with the sencha API.
My first attempt is to develop an iphone version of my company´s website: www.cabanacriacao.com
So I put a carousel to work with some images. Very fast with sencha! Very cool!
But now I want to let the user doubletap each image to flip it and see its back, where I will show some information about the image, like I did in the Flash version of my website.
I am all day here and til now I could not figure out how to put the images to listen to the doubletap event!
I am doing like this:
var frame1 = new Ext.Panel({
id: 'frame1',
autoScroll: false,
items: [{html: '<div id="front"><img src="frames/pt/servicos.jpg" width="480" height="208" /></div>'}, {html: '<div id="back"><img src="frames/pt/fiori.jpg" width="480" height="208" /></div>'}],
layout: 'fit',
});
And them frame2, frame3, etc.
So I want to show to "front" of the frame first and after doubletap, show the "back" with a nice flip effect.
The carousel is like this:
var carousel1 = new Ext.Carousel({
ui: 'light',
defaults: { cls: 'card' },
items: [
frame1,
frame2,
frame3,
..... etc
The carousel is working very nice, with the "back" part hidden perfectly. But please, give me a tip about how I can achieve the desired effect.
I´ve already tried a lot of ways. I´ve read all sencha touch threats on this forum, searched a lot in the documentation...
I am not used to javascript and I am trying to learn it with the sencha API.
My first attempt is to develop an iphone version of my company´s website: www.cabanacriacao.com
So I put a carousel to work with some images. Very fast with sencha! Very cool!
But now I want to let the user doubletap each image to flip it and see its back, where I will show some information about the image, like I did in the Flash version of my website.
I am all day here and til now I could not figure out how to put the images to listen to the doubletap event!
I am doing like this:
var frame1 = new Ext.Panel({
id: 'frame1',
autoScroll: false,
items: [{html: '<div id="front"><img src="frames/pt/servicos.jpg" width="480" height="208" /></div>'}, {html: '<div id="back"><img src="frames/pt/fiori.jpg" width="480" height="208" /></div>'}],
layout: 'fit',
});
And them frame2, frame3, etc.
So I want to show to "front" of the frame first and after doubletap, show the "back" with a nice flip effect.
The carousel is like this:
var carousel1 = new Ext.Carousel({
ui: 'light',
defaults: { cls: 'card' },
items: [
frame1,
frame2,
frame3,
..... etc
The carousel is working very nice, with the "back" part hidden perfectly. But please, give me a tip about how I can achieve the desired effect.
I´ve already tried a lot of ways. I´ve read all sencha touch threats on this forum, searched a lot in the documentation...