# loadserverdata

> Set & Call the server data without coding, tag attribute will work for you.

Latest version **0.0.6** (published 2016-11-18) · 0 weekly downloads

## Install

```sh
npm install loadserverdata
pnpm add loadserverdata
yarn add loadserverdata
bun add loadserverdata
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2016-11-18 |
| First published | 2016-11-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | P.Benaya Paul |
| Maintainers | benayapaul |
| Keywords | jquery-plugin, ecosystem:jquery, load, server, data, timer, tag |

## Links

- npm: https://www.npmjs.com/package/loadserverdata
- Repository: https://github.com/benayapaul/loadServerData
- Issues: https://github.com/benayapaul/loadServerData/issues
- npm.io page: https://npm.io/package/loadserverdata

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) >=1.5

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2016-11-18
- 0.0.5 — 2016-11-18
- 0.0.4 — 2016-11-18
- 0.0.3 — 2016-11-18
- 0.0.2 — 2016-11-17
- 0.0.1 — 2016-11-17
- 1.1.1 — 2016-11-17
- 1.1.0 — 2016-11-17

## README

# loadServerData
Set & Call the server data without coding, tag attribute will work for you.
---

##Installation
Include the loadServerData.js after including the jQuery

```html
<script src="/path/to/loadServerData.js"></script>
```
or

Install using npm
```
npm install loadserverdata
```

You need create tag based on the set attribute.

```html
<div id="server-call" set-timer='5000' set-url='server-file.php' set-load-text='Please wait loading...'></div>
<p id="pId" set-timer='5000' set-url='server-file.php' set-load-img='https://www.google.co.in/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png' set-load-once='1'></p>
```



#Example : 

```html
<html>
<head>
	<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
	<script src="loadServerData.js"></script>
</head>

<body>
	<div id="server-call" set-timer='5000' set-url='server-file.php' set-load-text='Please wait loading...'></div>
	
	<script>
		$.loadServerData("server-call");
	</script>
	
</body>
</html>
```

 
set-timer
- attribute trigger the server where given seconds.
  If the timer is below 5000 it will set default time as 5000 to avoid the server load.
	
set-url
- attribute fetch the data from the server.

set-load-text
- attribute display text content whenever response is delay.
  It's a optional if the attribute not set it will load default value "Please wait, we are fetching your data!"
  
set-load-img
- attribute display image whenever response is delay.
  It's a optional if the attribute not set it will load default value "Please wait, we are fetching your data!"
  
set-load-once
- attribute run at once or multi times 0/1.

---
_Source: https://npm.io/package/loadserverdata · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
