widget sever script execute twice

vintotz
Tera Contributor

Hi , my server side script in my widget execute twice upon on Load, i want to know how to   prevent this.

3 REPLIES 3

Deepak Ingale1
Mega Sage

Hi Vin,



Something like if (!input ) should help you to load server side code in widget


Post the screenshot of your server side code in your widget. while this can happen due to several ways from html/client side calls, without looking at the code its hard to help.


Hi deepak, i think i already find the cause, please correct me if my understanding is correct, i have a $watch on the controller and inside of it is a server.update(), is the server.update cause all the server side scripts to execute again ?