FoxInCloud
Return JS in Page.Activate()
Gravatar is a globally recognized avatar based on your email address. Return JS in Page.Activate()
  Vincent H.
  All
  Dec 19, 2018 @ 03:11am

Hi Thierry,
My JS code runs well in MyForm.Activate() or in Myobject.GotFocus() but not in MyForm.PageFrame1.Page1.Activate() (or click).
Can we get around ?
Thanks in advance

Gravatar is a globally recognized avatar based on your email address. re: Return JS in Page.Activate()
  Vincent H.
  Vincent H.
  Dec 19, 2018 @ 05:33am

I see activate() and deactivate() are supported
No error in the browser console. My JS code seems totaly ignored

Gravatar is a globally recognized avatar based on your email address. re: Return JS in Page.Activate()
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 20, 2018 @ 02:38am

Right, .Activate() is supported on the server only… you can code this (the code formatting modal freezes Safari for iPhone, sorry)

Procedure activate

If thisform.wlHTMLgen
Return
Endif

Thisform.cScriptJSadd(“JavaScript code”)

Gravatar is a globally recognized avatar based on your email address. re: Return JS in Page.Activate()
  Vincent H.
  FoxInCloud Support - Thierry N.
  Dec 20, 2018 @ 05:19am

Thank you Thierry, I tried but without success.

In the .lostfocus(), it works. But provided you change the value of the field !

© 1996-2024