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
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default Text Listening

    Text Listening


    Hello,

    Have a very simple question. I want to have a listener to a Text component like "forgot my password", then a new TextBox like email id will be made visible or some thing to be done. How to do that? A code snipet will be really helpful.

    Regards
    Arup

  2. #2
    Ext User
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    69
    Vote Rating
    0
    Rvanlaak is on a distinguished road

      0  

    Default


    Use the Html class...

  3. #3
    Ext GWT Premium Member takayser's Avatar
    Join Date
    Oct 2008
    Location
    Lucerne, Switzerland
    Posts
    188
    Vote Rating
    0
    takayser is an unknown quantity at this point

      0  

    Default


    try something like this:
    Code:
    final Text forgotPwd = new Text("forgot password");
    forgotPwd.setTagName("span");
    forgotPwd.setStyleAttribute("cursor","pointer");
    forgotPwd.sinkEvents(Event.ONCLICK);
    forgotPwd.sinkEvents(Event.MOUSEEVENTS);
    forgotPwd.addListener(Events.OnClick, new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
            // put your action here, e.g. textField.setVisible(true);
        }
    });
    forgotPwd.addListener(Events.OnMouseOver, new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
           forgotPwd.setStyleAttribute("color", "blue");
        }
    });
      forgotPwd.addListener(Events.OnMouseOut, new Listener<BaseEvent>() {
        public void handleEvent(BaseEvent be) {
           forgotPwd.setStyleAttribute("color", "black");
        }
    });

  4. #4
    Ext User
    Join Date
    Apr 2009
    Posts
    18
    Vote Rating
    0
    urwitharup@yahoo.com is on a distinguished road

      0  

    Default


    Thanks it works

Thread Participants: 2