using advanced poll on drupal 5, once the vote has been registered the CSS style vanishes from Internet Explorer browsers & the Drupal site turns into default Times Roman.
It works ok in the latest IE.
Any ideas on this?

Comments

anders.fajerson’s picture

I can't confirm this on IE6 (which I guess you are using) using the latest release (5.x-1.x-dev). Could you please turn off any other contrib module and/or custom theme when testing this. Is it only the font that changes or is all styling removed? Does the problem persist if you refresh the page? Also, please provide which version of IE you are using.

ChrisKennedy’s picture

Also if you could post a cropped screenshot of the problem it would be helpful.

anders.fajerson’s picture

Status: Active » Closed (fixed)

Closing this as there been a while since this was reported and no feedback or or confirmation of the bug. Re-open if appropriate.

leanazulyoro’s picture

Status: Closed (fixed) » Active

I'm opening this old issue because i'm in the same situation. in ie7 (not in ie6) after submiting a vote (sometimes, not the 100% of the times) the css vanishes completly, this happens instansly, i'm not well understood in terms of ajax but i believe somewhre around that ajax functionality used to submit the votes would be the cause for this behaviour. you can see this happening in this site: www.runningnetwork.com. remember, this happens (at least to me) in ie7 and not in ie6.

leanazulyoro’s picture

Version: 5.x-1.0-beta1 » 5.x-1.0-beta6

forgot to update to the version i'm using

Leinad’s picture

Hi,

You can also see the problem on this page: http://wer-beichtet-wem.de/

When you press "Stimme" (vote) all Styles in IE7 are lost.
In Firefox the JavaScript-Console says: "Node cannot be inserted at the specified point in the hierarchy" code: "3"

If the user has access to "add write-ins" the style does not get lost...

Maybe this is more a JS issue...

Versions
Drupal: 5.7
Advanced Poll: 5.x-1.0-beta6
IE: 7.0.5730.11

byas’s picture

Component: User interface (CSS, Images, etc.) » Code

Hi,

I experienced a similar problem with binary polls that allowed writeins and that limited the max. choices to 1. Any user (using IE) that didn't have writein permissions would not only encounter a page free of css styling upon hitting the vote button but would also find that their vote hadn't been counted.

The problem may have to do with the following line in binary.inc in the advpoll_voting_binary_form_submit function on or around line 184

// Do submission specific to writeins.
_advpoll_writeins_voting_form_submit($node, $form_values, $votes, 1);

if ($node->max_choices == 1) {
// Plurality voting
// Ignore write-in choice that has already been taken care of.
if (!$node->writeins || !$form_values['choice'][$form_values['writein_key']]) {
$vote->value = 1;
$vote->tag = $form_values['choice'];

The !$form_values['choice'][$form_values['writein_key']] expresion seems to return false for users without writein permission voting in a writein poll. For such users I think the $vote object fails to get formatted and added to the $votes array fed to the votingapi_set_vote function.

My current solution is to replace !$form_values['choice'][$form_values['writein_key']] with ($form_values['choice'] !=$form_values['writein_key']) which I assumed given the code that handles the approval voting a few lines lower

Keep in mind I'm not terribly familiar with the advpoll & votingapi modules so the above is just my best stab at what is going on. Well I hope this helps at least a little :)

Using:
Drupal: 5.7
Advanced Poll: 5.x-1.0-beta6

I've tested
IE 6.0.3790.0
FireFox 2.0.0.16
Opera 9.27
Safari 3.1.1

From what I've seen so far the css styling only goes away for IE (both 6 & 7). Firefox, Opera, and Safari display the "Your Vote was Registered" message even though it hasn't. I've also applied the patch from http://drupal.org/node/108341 and made one other change to to the advpoll_cancel function to fix a problem where anonymous users would encounter problems when canceling their votes.

pomliane’s picture

Status: Active » 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.