Do the timer reset in the masterpage in the each event call in the childpage, how?

Do the timer reset in the masterpage in the each event call in the childpage, how?

Hello friends, this is my first post here, sorry for my bad grammar in English.

I made this timer "defaultCountdown.js" shown in this below:




  1. $(function () {
        shortly = new Date();
        shortly.setSeconds(shortly.getSeconds() + 1800);
        //since: new Date(2011, 12-1, 11),
        $('#defaultCountdown').countdown({ until: shortly,
            onExpiry: TempoAcabou, onTick: watchCountdown, onTick: highlightLast5, format: 'MS'
        });

        function highlightLast5(periods) {
            if ($.countdown.periodsToSeconds(periods) == 600) {
                $(this).addClass('highlight');
            }
        }

        function TempoAcabou() {

            $('#mensagem').text("Para sua segurança o tempo de duração da página expirou, favor logar novamente");
            $('#mensagem').css('visibility', 'visible');
        }

        function watchCountdown(periods) {
            $('#monitor').text('Just ' + periods[5] + ' minutes and ' + periods[6] + ' seconds to go');
        }
    });

























I use a masterpage, and every page (the form) within the masterpage ie "childpage" when is updated by an event (for example, a button that register, or any update, delete in the database or whatever), it not resets this  Countdown. I want do the reset by each event occur in "childpage", the clock is in the masterpage, to avoid having to put the clock in dozens of other forms, but the idea is to keep it in the masterpage and in every event childpage the timer be reset, but i dont know how do this.

I'm using this jquery
Countdown in a aspx/.Net page web.


Maybe I should put in pageload of each page, a command that there a reset on the parent page masterpage or something, there must be another way of course, I have not the faintest idea.


can anyone help me?

Thanks!