PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB22 - Page Refresh
WB22 - Page Refresh
Iniciado por guest, 21,jul. 2018 19:57 - 3 respuestas
Publicado el 21,julio 2018 - 19:57
Hi All

Is there anyway to change a control on a page without the entire page being refreshed each time you do so? I want to change the status [to grayed] of an image control in a looper - I cannot do it without the entire page being refreshed.

How can I only have the one control being refreshed?

Cheers
André
Publicado el 21,julio 2018 - 21:42
Hi André,

There are several ways to prevent a total page refresh.
1. With buttons and links you can switch on AJAX for the server click code. (Click the AJAX link on the tab of de code window) The operation on the controls mode (general tab) should be set to "send the values of the controls to the server"
2. Create a server procedure and switch on AJAX as described in 1. Then call the procedure from browsercode using AjaxExecute(AjaxUpdateControls,myProcedure,myParameters).
3. Create a hidden link or button containing click code. (for settings see 1) Then use ExecuteProcess(control,trtClick) from Browser code.

Kind regards,
Piet
Publicado el 21,julio 2018 - 23:13
Hi Piet

Thanks for that - it is not refreshing the page now but seems to be updating all the lines in the looper for the specific control that has been modified. Would be nice if it only changed the line that was modified.

Cheers
André
Publicado el 26,julio 2018 - 10:36
you have a simpler option

LooperDisply(LOOPER)
TableDisplay(TABLE)
ListDisplay(LIST)

set it to the trigger that refreshes the page