Hello All,
Apologies if this is a little long winded...
I have been writing database driven browser applications using Apache, PHP & MySQL for some time. The main advantage for me is that on a large network an administrator can issue a password & a local URL and the user has access to the 'software'. Wonderfully flexible accross so many platforms! I also have been using JavaScript more and more to assist with callbacks.
The problem I repeatadly encounter is when rows of form data are generated from the database and displayed in a table on the browser. Each row might contain a text box, some drop downs, checks etc. Lets say the user changes one of these drop downs.... I use a JavaScript event to submit the form with the right trigger variables. Which in turn fires the PHP routines & writes the changes to the database.
BUT... this means that the whole page must then be regenerated. Which means calls to the MySQL DB and waiting for the whole screen to refresh.
What I need is a method of writing the changed info to the database, and then altering the form directly. I posted a similar query to this forum some time ago and Frymaster suggested an excellent compromise. Essentially what I do is fire a seperate PHP browser session with the JavaScript which updates the database. Then I close the session. This works pretty damn good...
But I wonder if anyone else out there has had similar problems and found other solutions. Like: Should I consider a Java applet? Or another language entirely? I guess what I am trying to do is get the browser based application to look and act like a 'real' client-server app w/o the hassle of installing software on client machines!!
Cheers,
Carl.