Skip to Content

Business in Motion – JSP MI: The Double Click Issue

Have you heard of the “double click” issue? This happens when a user clicks a hyperlink twice (= double click) on the PDA. Or – and this is even worse – the user clicks two or more links on the UI. Something rather easy to do with the performance of today’s PDAs. What will happen? Quite frankly, anything. In the worst case you will corrupt your client‘s database, which means you will have to reinstall the MI client. To avoid this, change the code of your user interface. How? Parse all links with Javascript.


Instead of going directly to a page, you execute a JavaScript function that can look like this:

var linkActivatedFlag = false; function goTo(url) { if (linkActivatedFlag == false) { document.location.href = url linkActivatedFlag = true; } }

Do the same with your forms. If the user clicks on the submit button, the form needs to be submitted and the button needs to be deactivated:

Adapt all JSPs/HTML pages of your MI application to this pattern. Disadvantages of this approach:

  • Javascript is browser dependent. There might be browser versions where your Javascript implementation does not work.
  • Illegal navigation like returning to an outdated predecessor page by pressing the browser’s return button is not covered.

But enough for today, let’s get the Business in Motion!.

Be the first to leave a comment
You must be Logged on to comment or reply to a post.