0
私のmvcアプリケーションでは、特定のページでセッション用のjquery idletimeoutプラグインを使用しています。私のjqueryでは、私は'expected ')'
としてエラーを取得しています。誰が私はそれを変更する必要があります参照してください?mvc 2のJquery-idletimeoutエラー
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>ManageEmployeeProfile</title>
<script>
function logout()
{
alert('You are about to be signed out due to Inactivity');
window.location = '/Account/Logout';
}
$(document).ready(function()
{
var SEC = 10;
var MIN = 6 * SEC;
// http://philpalmieri.com/2009/09/jquery-session-auto-timeout-with-prompt/
<% if(HttpContext.Current.User.Identity.IsAuthenticated) {%>
$(document).idleTimeout({
inactivity: 30 * MIN,
noconfirm : 30 * SEC,
redirect_url: 'javascript:logout()',
sessionAlive: 0, // 30000, //10 Minutes
click_reset: true,
alive_url: '',
logout_url: ''
});
<%} %>
}
</script>
ここではエラーが発生しています$(document).ready(function() –
オブジェクトが期待されています –