You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using nyroModal v2 in an ASP.NET MVC3 application. The application forces users to authenticate and the auth cookie has max. lifetime of two hours. When the auth cookie expires all requestes are redirected to a login page (using http status code 302).
When a user opens a link in a modal window and the auth cookie is expired nyroModal shows "an error has occored". I managed to add a callback function to handle all errors
$(this).nyroModal({
callbacks: {
error: function (nm) {
alert("some error, but which one?");
}
});
but I don't see a way to decide what kind of error (http status code) has happened. Is there an error object in nyroModal or do I need to attach an error handler using jQuery?
What I want to achieve is: close the modal window and redirect the browser window to the login page.
Thanks in advance!
Thomas
The text was updated successfully, but these errors were encountered:
I'm using nyroModal v2 in an ASP.NET MVC3 application. The application forces users to authenticate and the auth cookie has max. lifetime of two hours. When the auth cookie expires all requestes are redirected to a login page (using http status code 302).
When a user opens a link in a modal window and the auth cookie is expired nyroModal shows "an error has occored". I managed to add a callback function to handle all errors
$(this).nyroModal({
callbacks: {
error: function (nm) {
alert("some error, but which one?");
}
});
but I don't see a way to decide what kind of error (http status code) has happened. Is there an error object in nyroModal or do I need to attach an error handler using jQuery?
What I want to achieve is: close the modal window and redirect the browser window to the login page.
Thanks in advance!
Thomas
The text was updated successfully, but these errors were encountered: