Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
naive AJAX auto-save implementation
<form method="POST" action="/our/url">
<textarea name="input" onChange="save(event)" />
<script language="javascript">
function save(event) {
var request = new XMLHttpRequest();,;
request.send(new FormData(;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment