[RFC] Reload notification info via ajax onclick and update current page
[RFC] Reload notification info via ajax onclick and update current page
If you work with multiple tabs, the notification workflow will often result in an incorrect number of notifications reported. That's simply a result of only setting the value and list of notifications on loading the page. Without a mechanism like long polling or websockets which are difficult to implement in a scalable manner that still works on shared hosts, we should try and make it a bit easier to check if there are actually any notifications left. So I think it would help if the notifications list was reloaded via ajax when one opens it and the number of notifications updated accordingly. Then one only needs to click on the reported notifications to find out if they are still valid.
-
- Registered User
- Posts: 22
- Joined: Sun Mar 18, 2012 9:30 pm
Re: [RFC] Reload notification info via ajax onclick and update current page
Although I would prefer doing it using long polling, updating it when one opens the notification list seems to be a reasonable solution which will work without much overheads.
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: [RFC] Reload notification info via ajax onclick and update current page
I was thinking the best idea would be to send a request every X seconds to update the number, but I'm okay with having it reload when the list is open. Although that would potentially cause different numbers on multiple pages.
-
- Registered User
- Posts: 523
- Joined: Sat Apr 22, 2006 10:29 pm
- Contact:
Re: [RFC] Reload notification info via ajax onclick and update current page
what is a 'notification' ? I see it on the left corner next to the ucp link but i can't guess what it's for.
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Reload notification info via ajax onclick and update current page
Either this, or just don't display the number of notifications in the title.
- imkingdavid
- Registered User
- Posts: 1050
- Joined: Thu Jul 30, 2009 12:06 pm
Re: [RFC] Reload notification info via ajax onclick and update current page
sajaki wrote:what is a 'notification' ? I see it on the left corner next to the ucp link but i can't guess what it's for.
Think Facebook. Basically when something happens on the board (someone replies to a subscribed topic or quotes you in a post, among other things, you will get a notification. You can manage what things you get notified about in the UCP. Extensions can add a new notification type as well.