I have tried this in FF and IE. I would like the shoutbox to update whenever a user submits a new message. As it stands now, our users will submit items 4-5 times and the the auto refresh will occur. Is there something that could be wrong with our install?

Comments

disterics’s picture

So say there are two users on the site - user1 and user2.
When user1 submits a shout - he will see it immediately in the shoutbox. User2 will however not see it immediately. User2 will see it at the next refresh.
Sounds like your refresh interval might be too high.

ron williams’s picture

Actually, what's occurring is when user a submits a shout, the page does not refresh for user a, and the text he just submitted stays in the form. Often, the user will submit the text several times thinking that the text was not posted when in fact it was.

disterics’s picture

Can you try the latest dev build and let me know if this issue still exists ?

survivorx’s picture

Version: 5.x-1.1 » 6.x-1.x-dev

I think I have the same bug. For me it's like this:
Shoutbox 6.x-1.x-dev (2008-Jun-02) works fine for registered users. If a guest user shouts something, the registeres users see it with the next Ajax refresh. The guest user's Shoutbox is updated on submit but on the next Ajax refresh, the old state is restored. If a registered user shouts something, the guest users don't get an update. You can see the problem by viewing the file "shoutbox/js/view", which is polled by Ajax. For guest users, this file doesn't update, for registered users it does. I can force an update for guest users by running "cron.php".

Regards,
Stefan

disterics’s picture

Version: 6.x-1.x-dev » 5.x-1.1

@survivorx - can you create a new issue for your problem.

mjourney2’s picture

I am actually having the same problem... People will hit the submit button but the form won't submit right away. So they hit it again, and again... I don't see why this should be affected by the refresh interval. It should be able to submit the message, and only see it in the box when the box refreshes. But at least clear the input field so that people know it has been submitted already.

Thanks!

disterics’s picture

Status: Active » Fixed

Committed a fix. The input fields are reset and the submit button is replaced with a throbber.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.