Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form events order when loading a template (Priority support)
#1
I am using Intraweb 15.3.3 with Rad Studio 10.2.3 (C++ Builder).
It seems to me that when a template is loaded on IWForm the IWAppFormRender event is triggered before the template complete to load.
Which is a problem!
Because I have some JavaScript code in the template which return values needed by the IWAppFormRender event!
Is is the right event order?
Reply
#2
The OnRender event is a server side event, not a client (browser) side one. It will always happen when (i.e. immediately before) the HTML is being generated on the server side. Is it not the right place to use this kind of functionality that you want.
What you want here is a kind of chicken & egg problem. JavaScript will only run on browser side after rendering but you want to get the return values of JS functions before rendering which is not possible.
If your form needs some browser information other than the size of the window, you need to obtain this when your application starts and then adjust the rendering of the forms according to it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)