CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 AJAX AutoSave

Print topic Send  topic

Author Message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.