Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    39
    Answers
    1
    Vote Rating
    5
    Zachary1748 is on a distinguished road

      0  

    Default Answered: How to make a Carousel item such as an image a link to a new page?

    Answered: How to make a Carousel item such as an image a link to a new page?


    Hello everyone,

    I am trying to make an image item that is in my Carousel a link, I was thinking to use a listener and have a tap event. I want the link to go to another page inside the app leading to more information on that subject they clicked on, so not an external link. If anybody can help with this please do so, in much need of help.

    Thank you in advance!

    PS: I am building my app in Sencha Architect 2

    Here is part of my code:
    Code:
    {                xtype: 'panel',
                    scrollable: false,
                    items: [
                        {
                            xtype: 'container',
                            height: 155,
                            width: 317,
                            items: [
                                {
                                    xtype: 'image',
                                    docked: 'left',
                                    height: 157,
                                    ui: '',
                                    width: 157,
                                    src: 'images/capture.jpg'
                                }
                            ]
                        }
                    ]
                }

  2. Hi!

    You may try this:-
    Code:
        items: [
            {
                xtype : 'image',
                src: 'Your Image URL',
                height: 64,
                width: 64,
                listeners:{
                  tap:function(){
                   window.open ("Your internal URL to open","Your New Window title"); 
                  }
                }
            }
        ]

  3. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi!

    You may try this:-
    Code:
        items: [
            {
                xtype : 'image',
                src: 'Your Image URL',
                height: 64,
                width: 64,
                listeners:{
                  tap:function(){
                   window.open ("Your internal URL to open","Your New Window title"); 
                  }
                }
            }
        ]
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  4. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    39
    Answers
    1
    Vote Rating
    5
    Zachary1748 is on a distinguished road

      0  

    Default


    Thank you so much! it worked!

  5. #4
    Sencha User
    Join Date
    Aug 2012
    Posts
    39
    Answers
    1
    Vote Rating
    5
    Zachary1748 is on a distinguished road

      0  

    Default


    I just had one more question, when I type in a link that opens a new tab for an external link but how do I get it to stay in the same window and open a different window in the app?

Thread Participants: 1

Tags for this Thread