User comes to [url removed, login to view] and fill out the form where they need to enter a phone number (for verification purposes) and what I want to happen is when form is submitted:
Popup - or some overlay that will tell them... PLEASE WAIT FOR A CALL (and will prevent them from clicking links in the background)
while in the background request is sent to remote server that will do the call and ask them to enter a pin once they answer the phone. (Request is send in GET method like [url removed, login to view]) and that's it.
After some time (up to 2 mins) I will get a response from server in GET format like: [url removed, login to view]
Now based on ?pincheck (success or failed) I want to to redirect them to corresponding pages ([url removed, login to view] or [url removed, login to view])
Bottomline: trick is just to wait for remote response if success or failed and in the meanwhile just don't let users click on links on site (so not to navigate away)... yes - they can always close, but that's OK ! Very simple stuff - don't need anything else but a popup that will remain at the top until remote server pings back with response and based on response - just redirect to a page [url removed, login to view] or [url removed, login to view] LOOKING THIS TO BE DONE ASAP - Most likely first reasonable bidder will get a job and hopefully finish it within 30mins - 1 hour....