palimadra / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Improve handling of AJAX pages returning HTTP error code #215

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log into application.
2. After a period of inactivity the login expires, but the page is still open.
3. User clicks on a partial page link.
4. The page return 403 - Forbidden response code.
5. iUI calls an event to process XHR
6. Event handler looks at the response code and sets window.location to the
login page.

What is the expected output? What do you see instead?
N/A

What version of the product are you using? On what operating system?
0.3

Please provide any additional information below.

Would it be possible to add a hook to process the HTTP Response code
for partial page loads. This is required in order to gracefully handling
partial page loads after a login is expired.

I can't use redirect in step 4 as it will simply serve the login page as a
partial page.

I have implemented this locally and it seems to work for me. Sample code
provided.

Original issue reported on code.google.com by izev...@gmail.com on 21 Jan 2010 at 10:44

Attachments:

GoogleCodeExporter commented 9 years ago
This is an important use case and needs to be supported.  Thanks for the patch, 
too!

Original comment by msgilli...@gmail.com on 21 Jan 2010 at 5:12