EasyUI Forum
November 06, 2025, 06:23:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: text focus event won't work on: February 08, 2016, 06:49:23 AM
Thank you, Jarry.

In my aspx page is not working and the code is the same, I will study more.
2  General Category / EasyUI for jQuery / Re: text focus event won't work on: February 08, 2016, 04:45:39 AM
ther's a bug... in my brain, or really the event on focus don't work

Code:
$('#txt').textbox('textbox').on('focus', function () {
       $(this).val("00000");         //don't set
});

or

$('#txt').textbox('textbox').bind('focus', function () {
       $(this).val("00000");         //don't set
});

or

$('#txt').textbox('textbox').bind('focusin', function () {
       $(this).val("00000");         //don't set
});

curiously the keypress event works!
3  General Category / EasyUI for jQuery / text focus event won't work on: February 08, 2016, 12:23:17 AM
The textbox focus event does not work, the value of x is correct, but the component is not filled with the new value, any tips? Regards.

Code:
    $(document).ready(function () {
        $('#txtSchool').textbox('textbox').bind('keypress focus blur', function (e) {
            CallEvents($(this), e);})
    });

    function CallEvents(Sender, e) {           
        if (e.type == 'focus') {
            var rd = $(Sender).prop('readonly');
            var rd = false; //testing...
            if (!rd) {
                var q = String($(Sender).val());
                var x = q.replace(/\./g, "a");   //replacing dot by a
                //$.messager.alert('School', 'focus ' + x, 'info');
                $(Sender).val(x);   //does not fill the required field with the x content
                return;
            }
        }
        else if (e.type == 'keypress') {
            //$.messager.alert('School', 'keypress ', 'info');
        }
        else if (e.type == 'blur') {
            //$.messager.alert('School', 'blur', 'info');
        }
    };
4  General Category / EasyUI for jQuery / Re: linkbutton disabled still respond on click event on: February 03, 2016, 11:19:47 PM
Solved. I'm begginer, sorry.
5  General Category / EasyUI for jQuery / linkbutton disabled still respond on click event on: February 03, 2016, 10:31:51 PM
How avoid? Just via code?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!