• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Avoiding multiple request at a time

 
Selva Varadhan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Scenario :
In my application, i have the page, contains two buttons like Previous and Next button.

User Action:

[1] User clicks Next button (Submit Action )
[2] Before the response reached the Browser, user clicks previous button.

Issue :
This kind of action some time leads to inconsistant stage.
How to handle the user action, when one request is in processing stage.I don't want to disable the button.

Plz proivde some solution to handle this situation

Regards,
Selva varadhan
 
Zip Ped
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put a js code to detect the second mouse click and prevent the event from taking place and put an alert which says that there is a request already in process.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic