Poll Widget Error

Topics: Controls
Apr 1, 2010 at 4:17 AM

I have installed the poll widget and have created a poll with no issues.  However, I cannot get the votes to recored.  Using firfox I get the below:

Firefox says:

 $('SelectError').style.display is undefined

Error: $("SelectError").style is undefined
Source File: http://thenetheryfamily.com/BlogEngine/
Line: 219 

 

When I click on the link it take me to the below in the source code:

 

 

  function beginVote()
  {
    $('SelectError').style.display = 'none';
    var clientId= 'ctl00_74299a0d5aac4b0cbf3dbb69659bbc89_AnswersRbl';   ******this is the error line

I have the css in place.  I am not sure what this means


Apr 1, 2010 at 4:18 AM

If you want to see it you can.

http://thenetheryfamily.com/BlogEngine/default.aspx

 

Coordinator
Apr 1, 2010 at 5:25 AM

It looks like that JavaScript code for the poll was originally written for an older version of BE.

On your page, I see about 4 JS functions for the poll -- beginVote, endVote, showResult and showPoll.  Within those functions, in various places, it has lines of code beginning like $('.....').  Those lines of code should be changed so instead of:

$('....')

It is:

BlogEngine.$('....')

So basically prefix the $ with BlogEngine.

A quick count shows there's about 13 lines that need this adjustment made to it.

Apr 1, 2010 at 7:18 AM

Ok...thanks that took care of the issue.