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 Premium Member yyogev's Avatar
    Join Date
    Jun 2009
    Location
    Shoham, Israel
    Posts
    196
    Vote Rating
    6
    yyogev is on a distinguished road

      0  

    Question Date field blur event on submit button click

    Date field blur event on submit button click


    Hello,

    I have a task form with a target date field. when that date is changed so that the task is delayed, the change event triggers a dialog box that asks the user for the reason for this delay. the user's answer is saved in a hidden field.
    Since the change event is triggered on blur, it happens also that the user gets this dialog box after clicking on "submit changes". however, it is not followed by the click event and so the form is not submitted, which is counter-intuitive to the user.

    How can I discover that the click on the submit button caused the blur, so I can follow the dialog box with form submission ?

    Thanks,
    Yaron
    Yaron Yogev

    IT Software Developer

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      0  

    Default


    Probably far from being the best solution... but you can try something like this. Listen to the mousedown event of the button and set a flag that means that the user meant to click the submit button. In your dialogbox callback function, check if that flag is true and if it is, perform the submit.

    Code:
     
    {
          text: 'Submit',
          listeners: {
           'render': function() {
            this.btnEl.on({
             'mousedown': function() {
              form.submitNext = true;
             }
            });
           }
          }
         }

  3. #3
    Ext Premium Member yyogev's Avatar
    Join Date
    Jun 2009
    Location
    Shoham, Israel
    Posts
    196
    Vote Rating
    6
    yyogev is on a distinguished road

      0  

    Default


    Thanks. I'll try this.
    Yaron Yogev

    IT Software Developer

Similar Threads

  1. Replies: 3
    Last Post: 8 Jan 2014, 12:26 PM
  2. Click treeNode can not fire blur event when textfield is focused staus
    By lionhx18 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 18 Mar 2009, 9:26 PM
  3. How to add 'blur' event to Ext.Button? [SOLVED]
    By dancas in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 7 Feb 2008, 11:56 AM
  4. possible bug on blur event for field
    By hvgotcodes in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 13 Nov 2007, 10:41 AM

Thread Participants: 1

Tags for this Thread