Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

How to use findAll() error param? Or how to show login form when login session is expired and user action calls can.Model.findAll()?

$
0
0
I would like to know how can I return/handle errors such as login session expired and a call to can.Model.findAll() is made?

Scenario:
- user login session expired (20 minutes inactive for example)
- user tries to paginate a grid
- which in turn calls can.Model.findAll()
- server returns an error saying user session expired.

How can I handle errors in calls to can.Model.findAll()? I found no such example.

Viewing all articles
Browse latest Browse all 3491

Trending Articles