• Post Reply Bookmark Topic Watch Topic
  • New Topic

http call questions

 
Rahul Sharma
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we send a http request to server. Not talking about XHR requests
For example
( http://MyApp/getPageStream.jsp ) or any other http call.
Can we:-
1) Abort the request(for example say if user clicks cancel abort file upload request)
2)Delay request for say 2 sec.(e.g if user clicks twice in 2 sec sen call only once.)

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer to your first question is: It's up to the browser.

For the second question, some people handle this with tokens or simply use Javascript to disable the submit button once it's clicked to prevent a second click before the first is complete.
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats not in your hand, unless you are making XmlHttpRequest(ajax)requests.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!