CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Listbox onchange AJAX

Print topic Send  topic

Author Message
paulW

Posts: 24
Posted: 04/23/2009, 11:08 AM

I am new to CCS, finishing a halfway done project. I have a form with a listbox element for each record shown, and i need it to update the database when the listbox value is changed. I tried a regular XHR with a javascript onchange function but CCS must mess with the filepaths because just typing :

var req = new XmlHttpRequest();
req.open("POST", path/to/filename.php, true);

doesn't work, the file isn't working out of the directory i think it is.

Is there an easier way to do this AJAX request in CCS?
View profile  Send private message
materix

Posts: 161
Posted: 04/25/2009, 3:58 PM

One easy method is to add the database field into a hidden field, and then update the value of the hidden field with the listbox OnChange value.

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.