a-new-and-improved-jquery-idle-timeout-plugin
I want to use a-new-and-improved-jquery-idle-timeout-plugin its failing for me, but the example works when I include this in my page whihc has lot more jquery function and java script s fails. I am not exprt in resolving this issue need help on troubleshooting this.
the error I get from the chrome console is , attached are the js files and script
- Uncaught TypeError: Cannot read property 'jQuery1362094643740' of undefined jquery.js:357
- T.extend.data jquery.js:357
- idleTimeout.init jquery.idletimeout.js:32
- $.idleTimeout jquery.idletimeout.js:139
- (anonymous function) findAudit.9:208
- <!--/*--><![CDATA[/*><!--*/
-
- $("#dialog").dialog({
- autoOpen: false,
- modal: true,
- width: 400,
- height: 200,
- closeOnEscape: false,
- draggable: false,
- resizable: false,
- buttons: {
- 'Yes, Keep Working': function(){
- $(this).dialog('close');
- },
- 'No, Logoff': function(){
- // fire whatever the configured onTimeout callback is.
- // using .call(this) keeps the default behavior of "this" being the warning
- // element (the dialog in this case) inside the callback.
- $.idleTimeout.options.onTimeout.call(this);
- }
- }
- });
-
- // cache a reference to the countdown element so we don't have to query the DOM for it on each ping.
- var $countdown = $("#dialog-countdown");
-
- // start the idle timer plugin
- $.idleTimeout('#dialog', 'div.ui-dialog-buttonpane button:first', {
- idleAfter: 5,
- pollingInterval: 2,
- keepAliveURL: '/artms/keepalive.jsp',
- serverResponseEquals: 'OK',
- onTimeout: function(){
- window.location = "timeout.htm";
- },
- onIdle: function(){
- $(this).dialog("open");
- },
- onCountdown: function(counter){
- $countdown.html(counter); // update the counter
- }
- });
-
-
- /*-->]]>*/