This topic is locked
[SOLVED]

 Dashboard Autorefresh Grid disable animation (PHPr 9.8 Ent. 30772 x86)

7/11/2019 4:47:30 PM
PHPRunner General questions
C
ckranich authorDevClub member

Hi All,
I have Dashboard database grid item with a fairly short update time (1 second)

Want to get rid of the animation during update (dimming box, showing loading.gif and writing 'loading .....')
I have searched forum and searched output files but cannot spot where this is done.
Any hint how I can disable animation alltogether?

(maybe just imlementing in future a blinking edge or so... - but this then would be the luxority option)
Kind Regards,
ckranich

W
WilliamBDevClub member 7/11/2019

On the Misc tab you can check or un-check the loading message.
See in manual here

https://xlinesoft.com/phprunner/docs/miscellaneous_settings.htm

C
ckranich authorDevClub member 7/11/2019

digging deeper...
RunnerAll.js

LoadFirst.js
Notepad++ JS Beautifier strongly recommended
also Agent Ransack or similar is helpful
Top Level code is in [name of table]_list.php

-------------------------------------------------------

$layout = new TLayout("list_bootstrap1", "OfficeOffice", "MobileOffice");

$layout->version = 3;

$layout->bootstrapTheme = "cerulean";

$layout->customCssPageName = "[name of table]_list";

.....etc........
elseif( $mode == LIST_DASHBOARD )

{

require_once('classes/listpage_embed.php');

require_once('classes/listpage_dashboard.php');

}
.... to be continued.....

C
ckranich authorDevClub member 7/11/2019

MANY THANKS & Kind Regards,
ckranich



On the Misc tab you can check or un-check the loading message.
See in manual here

https://xlinesoft.com/phprunner/docs/miscellaneous_settings.htm

C
ckranich authorDevClub member 7/11/2019

unfortinately this doesn't help (at least on 98.E)

this checkbox is deselected on all tables and dasboards...
Best Regards,
ckranich



On the Misc tab you can check or un-check the loading message.
See in manual here

https://xlinesoft.com/phprunner/docs/miscellaneous_settings.htm



[/quote]

C
ckranich authorDevClub member 7/12/2019

Hi Again,
(Unfortunately this still is not resolved, so I have to dig deeper...)
From the bottomside of the tunnel (Webserver output, Firefox inspector) this animation looks

like
<div id="dashelement_[tablename]_list1" class="">

<div class="rnr-loading show"> *** i think this is general PHPr loading

<div class="main rnr-list alert alert-info".......>

<div>

<img src="images/loading.gif" align="absmiddle">

<span class="text">loading .....</span>

</div>

</div>

<div class="fon" style=.......; z-index: 1;">
=> I am searching up with a few of this keywords, to find where the

control mechanism is

C
ckranich authorDevClub member 7/12/2019

... finally some smoke(not yet a smoking gun :-)) ):
loadfirst.js has

-----------------

getLoadingBlock: function (customText) {

return '<div class="main rnr-list alert alert-info"><div>' + '<img src="' + Runner.getFullResourcePath('images/loading.gif') + '" align="absmiddle">' + '<span class="text">' + (customText || Runner.lang.constants.TEXT_LOADING) + ' .....</span>' + '</div></div>';

},

C
ckranich authorDevClub member 7/13/2019

Patching out the animation (in the output files) works(but might have sideeffects as loading animation is disabled globally):

  1. include\loadfirst.js

    .......

    getLoadingBlock: function (customText) {

    return ''; // alternate empty return

    // disabling the following code prevents small pop-up box

    // return '<div class="main rnr-list alert alert-info"><div>' + '<img src="' + Runner.getFullResourcePath('images/loading.gif') + '"

    // align="absmiddle">' + '<span class="text">' + (customText || Runner.lang.constants.TEXT_LOADING) + ' .....</span>' + '</div></div>';

    },
  2. styles\default.css

    .......

    .rnr-loading .fon{

    position: absolute;

    width: 100%;

    height: 100%;

    z-index: 3000;

    / background-color: #000; comment out these 3 lines

    opacity: 0.20;

    filter: alpha(opacity=20);
    /
    NOTE: Beware of the Browser (CSS) cache! You will see changes only after clearing browser cache.
    NEXT:

    I will investigate how this can be done other than patching the output,

    maybee overruling CSS in design editor might help.
    BR,

    ckranich

C
ckranich authorDevClub member 7/14/2019

learned how to alter the PHPRunner input files.

This is suboptimal, as Dashoards seem not to be designed for that.

But for my current project this works and is no show stopper any more.
I will replace this to some proper AJAX code in future. But only started

to read into AJAX stuff.
Greetings,
ckranich

W
WilliamBDevClub member 7/17/2019

I have this loading message disabled in all my pages. It seems that if I use page navigation that the loading message shows. This seems to be new though with v10.2, I don't remember it happening on v10. I have a ticket with support on this now and will update on the result.
I note you are using v9.8 so not sure about that.
Billy

C
ckranich authorDevClub member 7/18/2019

Hi Billy,
Thx for the update!

I still use 9.8 (10.2 I only installed recently, so I will tryout first old projects and if all works OK, then make transition to 10.2)

I also will post anything I will find out on 10.2 regarding this theme. Possibly soon I will handle the refresh by AJAX but I have to

learn about AJAX first...
Greetings,

ckranich



I have this loading message disabled in all my pages. It seems that if I use page navigation that the loading message shows. This seems to be new though with v10.2, I don't remember it happening on v10. I have a ticket with support on this now and will update on the result.
I note you are using v9.8 so not sure about that.
Billy

W
WilliamBDevClub member 7/24/2019



I have this loading message disabled in all my pages. It seems that if I use page navigation that the loading message shows. This seems to be new though with v10.2, I don't remember it happening on v10. I have a ticket with support on this now and will update on the result.
I note you are using v9.8 so not sure about that.
Billy



UPDATE

Support also sees this happening on page navigation (10.2 build 33375). It will be fixed in next build of 10.2 I think.
Thought I would inform any that are interested.
Billy