Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nurmuhammet-ali committed Aug 7, 2018
1 parent 11c2d42 commit fa979b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ oxg.post('/about', {

## Optional params
### `loading()`
Sometimes ajax requests my take time due to slow server, due to slow internet connection and etc. For those reasons you will to need to show user some type of message so they can realize that requests loads. For triggering any functions when ajax request loads, you can use `loading` method to do that.
Sometimes ajax requests my take time due to slow server, due to slow internet connection and etc. For those reasons you will to need to show user some type of message so they can realize that requests loads. For triggering any functions when ajax request loads, you can use `loading` method.
```js
oxg.post('/about', {
email: '[email protected]'
Expand All @@ -75,7 +75,7 @@ Sometimes ajax requests my take time due to slow server, due to slow internet co
);
});
```
Some old browser like IE 8 are caching files that has been already requested. Even if that file has been changed, IE 8 will still load old file in which it might be bad. To disable cache, we can add method `cache()` and give false value to it
Some old browser like IE 8 are caching files that has been already requested. Even if that file has been changed, IE 8 will still load old file in which it might be bad. To disable cache, we can add method `cache()` and assign false value to it
```js
oxg.get('file.txt')
.cache(false)
Expand All @@ -90,7 +90,7 @@ oxg.get('file.txt')
> Tip: if you request a `.json` or `.xml` file, oxg will return a parsed version of the file
## Oxg Instance
If you asssing a variable to oxg, it will return oxg instance, which can be userful to determine datas about ajax request, like: ajax response, ajax timeout and others
If you assign a variable to oxg, it will return oxg instance, which can be useful to determine the data about ajax request, like: ajax response, ajax timeout and others
```js
let oxgInstance = oxg.post('/to', {
name: 'Nurmuhammet Ali',
Expand Down

0 comments on commit fa979b9

Please sign in to comment.