Poll module not returning result to DB

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
UVSS

Poll module not returning result to DB

Post by UVSS »

I installed the Poll module as well as Ajax. I created a poll and it is working. But when I vote, the vote is not count for in the admin section and if I click on the peek button, it just refresh to the home page. Any help??? Thanks!
User avatar
wapcamer
Forum Members
Forum Members
Posts: 83
Joined: Thu Aug 09, 2007 12:10 am
Location: Paris

Re: Poll module not returning result to DB

Post by wapcamer »

up !!!
I have the exact same pb.
my installation is a CMSMS1.1.

Thanks for any help
User avatar
wapcamer
Forum Members
Forum Members
Posts: 83
Joined: Thu Aug 09, 2007 12:10 am
Location: Paris

Re: Poll module not returning result to DB

Post by wapcamer »

Hi,
according to the generated html code, the poll form sends queries to '#':

Code: Select all

<form action="#" onsubmit="return PollspollFormSubmit();">
I think this may be the problem, because the url asked remains the same as the one on which the poll appears and thus it just refreshes the page without taking in consideration the submitted form.

Still I don't have any idea how to fix it.
alby

Re: Poll module not returning result to DB

Post by alby »

wapcamer wrote: according to the generated html code, the poll form sends queries to '#':

Code: Select all

<form action="#" onsubmit="return PollspollFormSubmit();">
I think this may be the problem, because the url asked remains the same as the one on which the poll appears and thus it just refreshes the page without taking in consideration the submitted form.
I don't Poll module but you can check js PollspollFormSubmit() function (it's call with submit).
If there isn't URL in function then yes it's a bug (if missing, method default is GET) if URL not changed (no query param in URL)

Alby
User avatar
wapcamer
Forum Members
Forum Members
Posts: 83
Joined: Thu Aug 09, 2007 12:10 am
Location: Paris

Re: Poll module not returning result to DB

Post by wapcamer »

Hello Alby,
thanks for your reply.

You must be right regarding the js PollspollFormSubmit() function; I had a look to the Javascript console, and guess what?

Code: Select all

Erreur : PollspollFormSubmit is not defined
Fichier source : http://mysite.com/cmsms/
Ligne : 1
Has the dev forgotten to include files???
alby

Re: Poll module not returning result to DB

Post by alby »

wapcamer wrote: You must be right regarding the js PollspollFormSubmit() function; I had a look to the Javascript console, and guess what?

Code: Select all

Erreur : PollspollFormSubmit is not defined
Fichier source : http://mysite.com/cmsms/
Ligne : 1
Has the dev forgotten to include files???
Check in help module if there is info on js function (maybe it's a few rows to add in head section).
If not, can you add a bug tracker in forge?

Alby
User avatar
wapcamer
Forum Members
Forum Members
Posts: 83
Joined: Thu Aug 09, 2007 12:10 am
Location: Paris

Re: Poll module not returning result to DB

Post by wapcamer »

There is not much in the help.
I could find no info about the js function, only other users that have the same problem.

I will make a new bug in the forge, we will see what'll give.

Thanks
User avatar
wapcamer
Forum Members
Forum Members
Posts: 83
Joined: Thu Aug 09, 2007 12:10 am
Location: Paris

Re: Poll module not returning result to DB

Post by wapcamer »

Sorry I could find the button 'create bug'... :o
alby

Re: Poll module not returning result to DB

Post by alby »

wapcamer wrote: Sorry I could find the button 'create bug'... :o
Create an account with your forum nick
Login
Module Page
Tracker
Bugs
Add new bug

Alby
User avatar
wapcamer
Forum Members
Forum Members
Posts: 83
Joined: Thu Aug 09, 2007 12:10 am
Location: Paris

Re: Poll module not returning result to DB

Post by wapcamer »

Done !
Locked

Return to “Modules/Add-Ons”