Hi,

Ajax posting doesn't work (although 'normal' posting does) and whenever I enable the shoutbox block fivestar also reverts back to its fallback none ajax voting.

I notice an error supplied by firebug, not sure if it helps because I'm pretty clueless when it comes to javascript but I've included it below in the hope that it helps.

$("input#edit-nick") has no properties
attachForm()shoutbox-form.js (line 52)
(no name)()shoutbox-form.js (line 83)
e()jquery.js (line 2)
[Break on this error] $('input#edit-nick').focus(

I've tried both release version (5.x-.1.0) and the dev version to no avail.

P.S.
Thanks for writing this module.

Cheers,
Pete

Comments

suzanne.aldrich’s picture

Title: Javascript Error, Ajax not working & Conflict with Fivestar » Javascript Error, Ajax not working

Yeah when I go to post a shoutbox, it doesn't AJAX update, it just shows a : where the user:message would be, and I have to refresh the page to show the new shoutout. I changed the title of the bug because I get this problem without that other module/script installed; they can repost that problem under another issue if it isn't resolved by fixing this one.

disterics’s picture

Do either of you have a test site where i can see this ? You can use the contact form if you don't want to make the link public.

suzanne.aldrich’s picture

Hi disterics, check out http://www.aigeanta.net/ and thank you for your time spent looking at this!

disterics’s picture

I see the problem. My best guess is that the database query is failing. What database are you using ? Please include the version. Also what are your shoutbox settings and access control ?

Irrow’s picture

Sorry about the late reply and thanks for looking into this! for some reason I wasn't getting emails about the updates to this issue. Anyway, This is the site, a personal blog (maybe a little overkill using drupal, but it's a good learning platform).

The database is mysql 4.x and same with php, I can email my host for more specific version numbers if you need (or upgrade to mysql 5.x).

Anonymous and registered users have access to the following: edit own shouts, post shouts, post shouts without approval

I'm aware there may be javascript conflicts (i'm not well versed in javascript), but the problem exists even when everything else is turned off, so that shouldn't be it.

suzanne.aldrich’s picture

OK I'm running Drupal 5.2, PHP 5.2.0-8+etch7, PostgreSQL 8.1.9, and my webserver is Apache/2.2.3 (Debian). Shoutbox settings are default except I unchecked "Show the name field for logged in users". Authenticated users can delete their own shouts, edit own shouts, moderate shouts, post shouts, and post without approval. Anonymouse users can post shouts, and post them without approval.

disterics’s picture

Status: Active » Closed (fixed)

Closing since there hasn't been any updates in a while.