3
我一直在嘗試使模式登錄表單,但作爲證書驗證完成後按提交對話框被關閉,當我再次打開它時,我看到錯誤 - 無效用戶名或密碼。使用web2py模式處理登錄表單
這裏是我的jQuery-
$(document).ready(function() {
$('#loginForm').formValidation({
framework: 'bootstrap',
icon: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
username: {
validators: {
notEmpty: {
message: 'The username is required'
}
}
},
password: {
validators: {
notEmpty: {
message: 'The password is required'
}
}
}
}
});
我能得到任何基本功能的實現模式登錄,這是使用AJAX,其中模式對話框關閉僅在成功登錄。
這個例子很有幫助:http://formvalidation.io/examples/modal/ – Arkni