FoxInCloud
javascript event 'BLUR' sent from a textBox in 'READONLY'
Gravatar is a globally recognized avatar based on your email address. javascript event 'BLUR' sent from a textBox in 'READONLY'
  Gilles Lajot-Sarthou
  All
  Mar 21, 2021 @ 06:34am

Hi Thierry

When the property of a texBox.wlAlwaysBlur = .F. Object, if no entry is made on the client browser side, no 'BLUR' event is sent to the server. However, for the most part, the opposite is always the case:

  • on textbox.readonly = .T. the 'BLUR' event is sent
  • on texbox.readonly = .F. and while no keystroke in the field has been made, the 'BLUR' event is transmitted to the server It seems that the only situation in which the 'BLUR' event is not transmitted to the server when there has been no keystroke in a textBox is when the form (parent of the textbox) is in the same state as when the form was initiated (). As soon as a view has been reloaded and the state of the form and its objects is different from the state after the form's init (), the javascript management of the blocking of the 'BLUR' event without typing the keyboard no longer works correctly.

Amicalement

Gilles

Gravatar is a globally recognized avatar based on your email address. re: javascript event 'BLUR' sent from a textBox in 'READONLY'
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Mar 21, 2021 @ 01:13pm

Hi Gilles,

What do you have in xxx.js for inputAlwaysBlur and inputAlwaysBlurOnReturn?

Gravatar is a globally recognized avatar based on your email address. re: javascript event 'BLUR' sent from a textBox in 'READONLY'
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Mar 22, 2021 @ 12:42am

Merci Thierry,

in xxx.js (PROD) there is no InputAlwaysBlur propertie there is only :

autoBlurDelay: -1,

inputAlwaysBlurOnReturn: true,

I will test in the local xxx.js by changing inputAlwaysBlurOnReturn: false, also testing with inputAlwaysBlur : false,

Amicalement

Gravatar is a globally recognized avatar based on your email address. re: javascript event 'BLUR' sent from a textBox in 'READONLY'
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Mar 22, 2021 @ 02:51am

Thierry,

Merci.

inputAlwaysBlurOnReturn: flase, fixes the problem. There is no longer any untimely 'BLUR' on read-only 'textBox', nor on the typing of the 'ENTER' key when this has not been preceded by an entry of characters in the 'textBox' field '

I continue to optimize my applications used in WEB mode.

Amicalement Gilles

Gravatar is a globally recognized avatar based on your email address. re: javascript event 'BLUR' sent from a textBox in 'READONLY'
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Mar 22, 2021 @ 03:09am

You can double check all currently available FoxinCloud.js settings in home(1) + "tools\ab\aw\app\site\xxx.js"

New settings may have appeared since you built your app’s xxx.js.

To know the current value of a setting, you can just type FoxInCloud.<setting> in the browser console (case sensitive, however intellisense will help)

© 1996-2024