HomeDelphi-PHP Forums

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?

7 Responses to “How to convert an existing web application to use AJAX”

  1. Steve Cooney Says:

    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.

  2. stefan Says:

    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.

  3. Alexandra Says:

    great example. Thank you. I would like to know how to use AJAX, when you use components, connected to DB.

  4. Alexandra Says:

    I checked it by myself. There is no difference between simple components and components, connected to DB. Thank you again.

  5. admin Says:

    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 :)

  6. Kirill Says:

    Thanks for your tutorials! That’s realy cool!

  7. Gerard Says:

    how to insert in a database with delphi-php?

Leave a Reply