Hi,

Ajax form submit doesn't work at all. When this bug will be fixed? It's really uncomfortable to post shouts right know.

P.S
Is there a way to add avatar images next to the shouts?

Comments

yeisonsi’s picture

Could someone here at least say - hi! ?

yeisonsi’s picture

Title: Ajax form submiting does'nt work. » Ajax form submiting doesn't work.
Issue summary: View changes
vitalblue’s picture

hi (as you wish)
can you provide me more details on that?
I made some tests and I can not reproduce it?

At the end of the week I will publish a new version so I would be glad to resolve this too.

thanks

vitalblue’s picture

Assigned: Unassigned » vitalblue
Status: Active » Postponed (maintainer needs more info)
yeisonsi’s picture

Thanks :)
Well, i can't say much about that. I have latest update of shoutbox. The problem seems to be in shoutbox-form.js, because if i change that file to older one submitting works fine. I have installed jquery 1.10.

Anyway, problem started after i updated to last version. (All files are original)

Plazik’s picture

I have the same problem. You can test it on my site rihanna1.ru (registration is required).

Dom.’s picture

Same problem here : very annoying . It breaks completely the interest of having a chat vs posting comments.

Dom.’s picture

Hi all !

Here is how I setter the AJAX back in the latest release : 7.x-1.0-alpha5
In the shoutbox-form.js file, uncomment the lign 7-11:

var options = {
  resetForm: true,
  beforeSubmit: Drupal.shoutbox.validate,
  success: Drupal.shoutbox.success
};

And the lign 21 :
$(shoutForm).ajaxForm(options);

Done !
From preliminary tests it works. I'm using it production site, so if I see an issue regarding this fix I will let you know.

Note that because of another issue I use Block Cache Exclude on the Shoutbox block

vitalblue’s picture

Hi Dominique,
Ajax submition is disabled for the moment as I couldn't find a way to make captcha validation work.
I'm trying to figure out how I can make this so if you have any idea I would love to listen.

Maybe for the moment, but this is not a proper solution, I can have a setting in admin section to define how new messages can be submitted. Through ajax or by posting the form.

Kind Regards

P.S. I have to apologise to all for the progress of the project but the last months I had no time.

Dom.’s picture

Hi !
OKay I do understand ! I'm looking forward you can manage it corretly !
Thanks

Isyldar’s picture

We are having a very similar issue with the current (alpha5) build. No Ajax submit works at all (we're not using captcha as this is authenticated users only).

However, the larger issue is that on Safari (Mac OS or Windows) , we aren't even able to submit. You go to hit enter, and nothing happens. I had to revert back to the alpha2 build to get a version that would work for our users.

vitalblue’s picture

Hi to all,
I have schedule a release next week including fixing of this bug too.
I will give the chance to admin to choose submission of shout through ajax or by submitting a post.
Also show avatar image or not also as you proposed.

Thanks all, sorry for the delay :-)

vitalblue’s picture

Hi after a long time,
I have manage to fix some bugs including ajax submission of shouts as you proposed.
Please check 7.x-1.x-dev version and if anything goes wrong just mention it.

The beta version which will be available in a couple of weeks will include avatar of user I said previously.

Kind Regards
P.S. Still there is an issue with captcha module which I will propably solve soon.

Isyldar’s picture

AJAX for submission is working, which is great. However, form submission (whether ajax or otherwise) now requires the user to hit the submit button with the mouse instead of using the return/enter key while focused on the input field. Is there a reason this is being prevented?

vitalblue’s picture

Hi Isyldar,
I guess this is a bug. I will fix that in the following version.

Kind Regards

vitalblue’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)