1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    India
    Posts
    21
    Vote Rating
    0
    aniketharshe is on a distinguished road

      0  

    Default Unanswered: <a> anchor tag in sencha touch 2

    Unanswered: <a> anchor tag in sencha touch 2


    Why is anchor <a> tag not working in sencha touch 2, in sencha touch 1 it used to work?

    What should i use instead of anchor <a> tag to call a function?

    <a href="javascript://" onclick="sendEmail()"><img src="resources/images/send.gif"></a>

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,669
    Answers
    3354
    Vote Rating
    746
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    You really shouldn't use onclick, it's a nasty way to do that in Sencha Touch. You should use event listeners.

    Code:
    component.element.on({
        scope : component,
        delegate : 'a',
        tap : function(e) {...}
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar