This topic is locked

AJAX Details Records Preview delay in PHPR6

10/17/2011 5:25:26 PM
PHPRunner General questions
V
vytb author

What would be the way to control AJAX Details Records Preview delay in PHPR6? There is no this in ajaxsuggest.js file.

C
cgphp 10/18/2011

Do you want to sleep the script before to echo the suggestion ? Check the searchsuggest.php file.

V
vytb author 10/18/2011

The earlier versions of ajaxsuggest.js file had some variables to control (delay time 200 included). In phpr6, I can't find it. Now, after the mouse-over-the-link, ajax popup goes on to quickly and annoys the users. I did not find a mentioned possibility in searchsuggest.php.

C
cgphp 10/19/2011

You can call the usleep method, in the tablename_detailspreview.php file, before the popup is echoed.

V
vytb author 10/19/2011



You can call the usleep method, in the tablename_detailspreview.php file, before the popup is echoed.


This would include repeating manual changes (btw, where should we put usleep() in file?) after every generation in every generated tablename_detailspreview.php . Rather annoying... Does it mean that the earlier simple way is lost definitely ?

C
cgphp 10/19/2011

There are two ways:

  • you can edit the RunnerAll.js file but everytime you rebuild the project, this file is overwritten.
  • you can edit the tablename_detailspreview.php file. It's not overwritten after a rebuild. Place the usleep method before the last echo.