![]() |
|
|
|||||||
| embarcadero.public.delphiphp.documentation If you have any documentation bugs to report or suggestions to improve the product documentation in Delphi for PHP, this is the place. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
The demo for the Ajax Database (...\Delphi for
PHP\2.0\vcl\samples\Ajax\Database) does not update the label above the data grid. This code that is emitted in the JSChange event on the listbox needs the following change: change this line echo $this->ListBox1->ajaxCall("changeTable", array(), array("ddaddress_book1")); to read like this echo $this->ListBox1->ajaxCall("changeTable", array(), array("ddaddress_book1", "lbCurrently")); Alternatively, you could change it to echo $this->ListBox1->ajaxCall("changeTable"); which is slightly less efficient as the Ajax call will return all components rather than just those that need repainting. Voila - the label now correctly updates when you click the listbox to reload another table :) HTH D David Moorhouse Moorhouse Works ltd www.moorhouse.co.nz |
| Sponsored Links |
|
|