Retrying during network problems

Avg Bid (USD)
Project Budget (USD)
$30 - $100

Project Description:

# **Short description**

**We need a javascript-function retryNetworkCall(\_request) that retries posting \_request by means of xmlhttp in escalating seconds when network problems occur. Furthermore you should create unit tests to test the functionality using the framework described here: <>

The tests should run successfully in all major browsers; i.e. the same as supported by the Extjs-lib behind the framework linked above.**

## Deliverables

# **Detailed requirements**

**Each of the requirements below must be both implemented and tested with the Unit Test framework in <> (but we don't need the 'Statistics'-part working).**
1. **Retrying should be done (e.g. using setTimeout) in escalating seconds until successful response. We want the time interval between each retry to increase. For instance the first retry occurs after 1 second, the next one 2 seconds after the first retry, the next one 3 seconds after the second retry and so on.**
2. **There should be a function cancelRetry that stops the retrying.**
3. **There should be a function resetRetry that resets the retrying process, that is the escalating counting should start from the beginning and the countdown for the timeout described in 1. should be reset.**
4. **If there is a network problem and the retrying has been going on for more than 10 minutes without any improvements, the retrying should stop (i.e. utilizing the function in 2.) and the user should see an alert box with the message 'Check your connection and try again'.**

**Criteria of success
A zip-file containing the produced code can be:**
1. **unzipped and placed in the root of any web-server; i.e. it should consist of non-server generated files: *.js, *.css, *.html etc.**
2. **run by pointing any supported browser to the http-root of this server**
3. **showing "Test passed" in all written tests (at least one per requirement) when pushing the "Start Unit Tests"-button.**

**If the extjs-lib utilized is not included it should be documented which version to use and which src-attributes to modify in the delivered files.**

Skills required:
Javascript, MySQL, PHP, Software Architecture, Software Testing, Testing / QA, Usability Testing, Web Hosting, Website Management, Website Testing
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.