[SOLVED]InitScript called multiple time

Answered Closed
0
0

Hi,

why InitScript in a widget is called multiple time?

regards

Cristian Zerbinati

  • You must to post comments
Best Answer
0
0

It’s called when the widget is created on the client the first time or on a page refresh and when InitScript changes. I tried on a Page and a Button using console.log(this, “init”); and also added debugger; to make sure but it’s always executed only once correctly. Can you attach a test case?

  • Cristian Zerbinati
    please try with a widget in a Window
  • Luca (ITG)
    Wisej.Web.Widget? It’s executed once for me. Put it in a Form and used both Show and ShowDialog. I also added debugger; in init and update functions.
  • Cristian Zerbinati
    I try a clean project and it is called only one time, surely there is something in my project. Sorry :)
  • You must to post comments
0
0

ok Luca,

I do a test project, you are right, for some reason the problem it is only in my project.

thank you

Cristian

  • You must to post comments
Showing 2 results