02-09-2023, 05:35 PM
>>This to prevent creating (and loading)
>>a page with lots of invisible modals
>>and div that only get used a few percent
>>of the time the user interacts with page.
Another way to do that is to use the 'OnBeforeProcess' event in the TIWTemplateProcessrHTML which gives you access to the template before it's applied to the page (it's called before each render). In my case I insert bootstrap dialogs or add / remove other things to the template based on the need.
>>a page with lots of invisible modals
>>and div that only get used a few percent
>>of the time the user interacts with page.
Another way to do that is to use the 'OnBeforeProcess' event in the TIWTemplateProcessrHTML which gives you access to the template before it's applied to the page (it's called before each render). In my case I insert bootstrap dialogs or add / remove other things to the template based on the need.