fpiette Posted October 5, 2017 Share Posted October 5, 2017 Hello, I have the need to define a global javascript variable (Global or at least available in the TUniForm where it is declared). It has to survive as long as the form is alive and it must be accessible by javascript code pushed by UniSession.AddJS(). Where is the best place to declare such a variable? Any help appreciated. F. Piette Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 5, 2017 Share Posted October 5, 2017 Hi, Also you can use MainForm.Script for this... Best regards, Quote Link to comment Share on other sites More sharing options...
fpiette Posted October 5, 2017 Author Share Posted October 5, 2017 It works perfectly. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.