widget sever script execute twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 07:32 PM
Hi , my server side script in my widget execute twice upon on Load, i want to know how to prevent this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 08:19 PM
Hi Vin,
Something like if (!input ) should help you to load server side code in widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 08:44 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2018 09:08 PM
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 ?