Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lambdacasserole/sync-or-simple
A simple background sync from HTML form to server-side file.
https://github.com/lambdacasserole/sync-or-simple
ajax form javascript security sync
Last synced: 10 days ago
JSON representation
A simple background sync from HTML form to server-side file.
- Host: GitHub
- URL: https://github.com/lambdacasserole/sync-or-simple
- Owner: lambdacasserole
- License: mit
- Created: 2017-12-03T16:45:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T16:46:15.000Z (about 7 years ago)
- Last Synced: 2024-11-01T09:28:30.922Z (about 2 months ago)
- Topics: ajax, form, javascript, security, sync
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sync or Simple
This is a proof-of-concept page designed to illustrate a that a user need not click the submit button on a form for
information from the page to be sent to the server.## How to Use
PHP will need to be installed on your machine and in your PATH. Open a terminal in the root directory (the folder with
this file in it) and run:```
php -S localhost:8080
```Then navigate to `http://localhost:8080` in your web browser. Open up the `http://localhost:8080/spy.html` page in
another window. Typing in to the username and password fields on the form in the first window will cause text to
appear in the second.## How It Works
In the background, every half a second, a script is sending the contents of the username and password fields to the
server (which is in this case running on the same machine, but needn't be) which is capturing these values.