Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed help to build a logic sequence to handle the scenario explained
    primarykey
    data
    text
    <p>This is the situation:</p> <p>There is an interface with many input fields and a 'Save' button to update the inputs. Saving will include many processes such as validation, user confirmation, adding comments or cancelling update.</p> <p>To move away from this interface there are many options like click on tabs, click on different buttons, pressing keyboard shortcuts and other more.</p> <p>The expected behavior when user tries to move away is the system should check for not updated fields and if any it should ask the use to update or ignore it.</p> <p>If the user choose 'Ignore', no problem, proceed with the navigation. </p> <p>But If the user choose 'Update' then the system should pause the current navigation and do the update handler witch contains many other procedures. After successful completion of these updating procedures the system should continue with paused interface navigation process from the point it is paused.</p> <p>For a sample:</p> <pre><code>//something like this $('#nxtPage').live("click", function(){ if (any field value changed){ var usrConf = confirm('You wanna update?') if (usrConf){ // proceed with the updating processes by calling them callDefaultFldUpdate(); // where this function includes many other procedures, so the return status wont help. } } // the default page navigation process starts here moveToNextPage(); } </code></pre> <p>So after the update procedures the system should continue with navigation procedure.</p> <p>Hope the situation is clear and expecting useful suggestions from you all to build this logic using javascript &amp;&amp; jquery.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload