Java Applets within Jade Web Enabled Forms?
Posted: Thu Feb 03, 2011 12:11 am
Hi all,
I am trying to find a solution to a long standing problem on one of our web applications. Essentially, the problem is that the user has the ability to press a button, and then press a second button before the first has finished processing. This means that data is being left unsaved, or, saved against the wrong items. I have tried many things to stop this happening, but it seems that the process for button 1 completes and the process for button 2 begins, before the HTML page has been refreshed, therefore when the text boxes etc are referred to, it is picking up the data that was valid when button 1 was pressed.....
I hope that makes some sense....
Anyway... The obvious solution would be to disable the buttons when they are pressed, so that further clicks cannot be made, then re-enable them after the first process has completed. The problem is, the process completing requires knowing that the user's browser has finished displaying the new HTML page - which i cannot be sure of. So when i try disabling the buttons, they either re-enable to quickly - and still allow the user to press them again - or, they never get re-enabled. And the user is stuck...
So now i have started looking into the possibility of using a Java Applet to control the way the user navigates around the screen in question - i.e. the buttons are not Jade controls... I figure that because Javascript is local to the user's PC that re-enabling the buttons at the right time would be easier.... Am i correct in thinking this???
Has anybody got any examples of how to incorporate applets into Jade Web Enabled Forms? I am using Jade 6.2.17 and am hoping that this functionality will be possible? Even if applets don't solve this problem, knowing how to incorporate them into our application will be very useful to know for other things!
Any help will be greatly appreciated!
Cheers,
Rich
I am trying to find a solution to a long standing problem on one of our web applications. Essentially, the problem is that the user has the ability to press a button, and then press a second button before the first has finished processing. This means that data is being left unsaved, or, saved against the wrong items. I have tried many things to stop this happening, but it seems that the process for button 1 completes and the process for button 2 begins, before the HTML page has been refreshed, therefore when the text boxes etc are referred to, it is picking up the data that was valid when button 1 was pressed.....
I hope that makes some sense....
Anyway... The obvious solution would be to disable the buttons when they are pressed, so that further clicks cannot be made, then re-enable them after the first process has completed. The problem is, the process completing requires knowing that the user's browser has finished displaying the new HTML page - which i cannot be sure of. So when i try disabling the buttons, they either re-enable to quickly - and still allow the user to press them again - or, they never get re-enabled. And the user is stuck...
So now i have started looking into the possibility of using a Java Applet to control the way the user navigates around the screen in question - i.e. the buttons are not Jade controls... I figure that because Javascript is local to the user's PC that re-enabling the buttons at the right time would be easier.... Am i correct in thinking this???
Has anybody got any examples of how to incorporate applets into Jade Web Enabled Forms? I am using Jade 6.2.17 and am hoping that this functionality will be possible? Even if applets don't solve this problem, knowing how to incorporate them into our application will be very useful to know for other things!
Any help will be greatly appreciated!
Cheers,
Rich