maxhugen
Posts: 272
|
| Posted: 07/10/2008, 11:36 PM |
|
Has anyone worked out a way to AutoSave a Record using AJAX? I've been studying the AJAX UpdateDb feature, but I can't work out how to toggle it between Insert and Update.
Ideally it would do something like this:
If (Required Fields Are Missing) { //do nothing
exit;
}
If (Primary Key Is Null) { //must be a new record
InsertRow();
exit;
} else { //record exists
UpdateRow();
exit;
}
Any suggestions or examples would be most appreciated!
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com |