Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Delphi4PHP NNTP Newsgroups > embarcadero.public.delphiphp.documentation
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 8th December 2008, 23:42
David Moorhouse
Guest
 
Posts: n/a
Default Ajax Database Sample: problem repainting screen (fixed)

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 19:36.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use