Retrying during network problems

This project received 3 bids from talented freelancers with an average bid price of $ USD.

Get free quotes for a project like this
Employer working
Project Budget
$30 - $100 USD
Total Bids
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: <[url removed, login to view]>

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 <[url removed, login to view]> (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.**

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online