function MyFunction() { var oWebScheduleInfo = ig_getWebScheduleInfoById("WebScheduleInfo1"); oWebScheduleInfo.setFetchReminderInterval(0); }
WebScheduleInfo™ asynchronously retrieves reminders every two minutes from the server when EnableSmartCallbacks and EnableReminders properties are set to True. Regardless whether or not the user is working with the Web page, the page’s load server side event fires every time an asynchronous request is made. Although the user doesn’t see a full page postback, this action may interfere with any logic placed inside the page’s load server side event.
To disable asynchronous retrievals for the reminder, call the WebSchedulesInfo’s setFetchReminderInterval function and pass 0 (zero) as its parameter on the client side.
The code below demonstrates how you can accomplish this functionality.
In JavaScript:
function MyFunction() { var oWebScheduleInfo = ig_getWebScheduleInfoById("WebScheduleInfo1"); oWebScheduleInfo.setFetchReminderInterval(0); }
In HTML:
... <body onload="MyFunction()"> ...