Need help please. I get a javascript object error in (demo.html) line 15
The local storage seems to work but not the database storage.
AJAXJavaScript
Last Comment
leakim971
8/22/2022 - Mon
leakim971
You need top put the Source folder (which contains the Autosave.js script) same level as the Demo folder, not inside
OR if you put the Source folder inside the Demo folder modify line 13 & 14 like this :
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Autosave Demo</title>
</head>
<body>
<h1>Autosave Demo</h1>
<p>Enter some value into the textbox. That value will be autosaved every 5 seconds if changed. Even if you leave the page and open it again, The last data used will be saved.</p>
<textarea name="exp1" id="exp1" cols="30" rows="10"></textarea>
<a href="javascript:;" id='empty'>empty records</a>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js'></script>
<script type="text/javascript" src="../Source/Autosave.js"></script>
<script type="text/javascript" src="../Source/Autosave.Request.js"></script>
<script type="text/javascript">
var as = new Autosave.Request('exp1','save.php','get.php',{emptyUrl : 'empty.php'});
OR if you put the Source folder inside the Demo folder modify line 13 & 14 like this :
Open in new window