[PHP] how does one bind a gui representation and a container object.

2009-01-08 Thread Fred Silsbee
I have a Qt 4.4 C++ SQL offline program that displays an SQL table. When I change a row-column cell, the change is instantly reflected in the database. Under Qt 4.4 I use: QSqlTableModel How does one do this in PHP for online use. I've done this under C#.NET VS2008 using binding between a gui

Re: [PHP] how does one bind a gui representation and a container object.

2009-01-08 Thread ceo
You'll have to use Ajax to make another HTTP request. HTTP is not really designed for this, and it will make the site quite sluggish most likely... You should certainly make it an async call and not slow users down with this feature. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] how does one bind a gui representation and a container object.

2009-01-08 Thread McClusky, Kevin - Sacramento
As an ammendum to the prior response, you may want to look into using AJAX with a streaming connection to the server. If you have a small number of users, this works nicely (I have used it in production systems before). http://ajaxpatterns.org/HTTP_Streaming#Solution If there are a large number

RE: [PHP] how does one bind a gui representation and a container object.

2009-01-08 Thread McClusky, Kevin - Sacramento
Reading your original request a little more carefully, it appears you're really looking for a way to immediately update the database when someone changes a value in an HTML form. Ajax is necessary. Make an ajax call triggered by a change in the table's data, which sends the change as GET or POST