How to convert an existing web application to use AJAX
I’ve just finished creating my second screencast tutorial!
This Delphi for PHP tutorial shows you step by step how to create a basic Delphi for PHP web application and then convert it in to a modern AJAX web application.
To view the video follow this link: Delphi4PHP and AJAX Tutorial
Again, it’s always a good idea to have the latest VCL4PHP release, so go HERE and download the latest version!
Anyway, check out the video and let me know what you think?

Search
Categories
Archives
Resources & Links
Meta
July 29th, 2007 at 11:04 pm
Two points: While this is how Ajax can be demonstrated it’s the wrong application of the technology. You are sending a payload back to the webserver, its instantiating the page and calling a function, returning the result and injecting it into the page asynchronously, just to add text to a control!!. You only need client side javascript to do that, AJAX is misapplied here. A real world application would not do that. Secondly the return(false) javascript ststement is not needed if you properly set the button type to btNormal instead of the default btSubmit.
August 2nd, 2007 at 4:56 pm
great example. But, you don’t update the database, you INSERT a record.
I would like to know how to select a record in a dbgrid, and get the field values in editfields, change them and update that record. And if you show how to do that, I guess, deleting a record will not be a problem either.
Thanks,
stefan
August 3rd, 2007 at 10:55 pm
great example. Thank you. I would like to know how to use AJAX, when you use components, connected to DB.
August 4th, 2007 at 8:38 am
I checked it by myself. There is no difference between simple components and components, connected to DB. Thank you again.
September 15th, 2007 at 11:21 pm
Steve Cooney you are absolutely correct. The demo application was more of a “What can be done” rather than what actually should be done. I can think of many real time applications where the examples I used would be needed, however as a demonstration it’s probably not the best example of using AJAX
November 12th, 2007 at 7:03 am
Thanks for your tutorials! That’s realy cool!
December 4th, 2008 at 6:16 pm
how to insert in a database with delphi-php?