Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddJavaScriptToExecuteAsCDATA vs AddToInitProc
#3
(12-20-2021, 02:10 AM)Alexandre Machado Wrote: AddToInitProc is a method of the IWForm (and also other objects like TIWPageContext), but it's not present in TIWApplication (WebApplication) interface.

AddToInitProc adds JavaScript code to the initialization section of the rendered page (function Initialize() that is called when page ends loading, similarly to jQuery's OnReady)

AddJavaScriptToExecute (and AddJavaScriptToExecuteAsCDATA) are methods from CallBackResponse which add JavaScript that is executed when a response to an Async request is generated.

Still a little bit confused.
Let's supose that I need to refresh, using javascript, a IWBSSelect component, wich one should I choose, AddToInitProc or AddJavaScriptToExecuteAsCDATA ?

Javascript code:
$('#MyIWBSSelect').selectpicker('refresh');
Reply


Messages In This Thread
RE: AddJavaScriptToExecuteAsCDATA vs AddToInitProc - by Comograma - 05-11-2022, 11:52 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)