When using Mozilla i get an jquery-error saying "m has no property". I've tracked the problem to the line advpoll-vote.js:27

$(data.response).insertBefore(thisForm);

I don't know why so I solved it by creating a new node before adding it to the tree.

var rdiv = document.createElement('div');
$(rdiv).html(data.response);
$(rdiv).insertBefore(thisForm);

/Thomas

CommentFileSizeAuthor
advpoll-jquery.diff743 bytesNimstad

Comments

anders.fajerson’s picture

Which version of Mozilla are you using? I can't replicate this on Mozilla 1.7.2. Most likely there is a another module interfering with the JavaScript. Try turning all other contrib modules off.

Nimstad’s picture

1) I can't turn everything of right now.
2) Three different Mozilla users had the same effect. I'm using 2.0.0.9. Not sure what the other have.
3) It worked when I tried the latest version of JQuery but that's highly unrecommended.

ChrisKennedy’s picture

Status: Needs review » Needs work

You get this error after voting?

Have you customized the theming of advpoll nodes at all?

Nimstad’s picture

Yes. I get the error after i clicked vote and after the result is retrieved from the server in the ajax setup in advpoll-vote.js. The error is in jquery.js(). It could probably be due to a parsing error of the html node to be inserted (['response']).

Yes. I have themed the framing of the poll, but I havn't changed the actual poll nodes. Please note that the code works if I just creates a new div and insert the html-output to this node before inserting it to the tree.

Also, please note that the original code works if I upgrade jquery.js to a later version.

pomliane’s picture

Status: Needs work » Closed (won't fix)

This version of Advanced Poll is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.