• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

clicking submit button multiple times

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have to slove one scenario, the user is doing money transaction from one account to another account he entered some amount to transfer from first account to secone account and he clicked submit button, assume my application is taking ten seconds time to do that particular transaction, user don't know about this time taking process to finish his transaction he thought I am not clicked properly so he clicked submit button second time.

here I need to display message to user (Ex: your transaction is in process), how can I solve this problem

I think one solution is: after clicking submit button(first time) I can disable that button till to finish that transaction. but here I don't want to disable.

regards,
vardhan
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There are so many ways you can prevent by user to multiple submitting. That is depend on you. I have give some explanation what i think at right now in my mind.

1 ) Make one session variable which contains just any value when you first time submit process transaction set that session variable null. Now at your process transaction business logic page check if that session variable contains value null do not process ahead.

2 ) You can make your button disable when process transaction.

3 ) See link http://jquery.com/demo/thickbox/ which is example of thick box. you can add something like this when you process transaction and just see process images using thick box...

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nishan,

thanks for your reply,

 
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic