Page 1 of 1

Poll module not returning result to DB

Posted: Wed Jul 11, 2007 5:50 pm
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!

Re: Poll module not returning result to DB

Posted: Tue Sep 04, 2007 1:31 am
by wapcamer
up !!!
I have the exact same pb.
my installation is a CMSMS1.1.

Thanks for any help

Re: Poll module not returning result to DB

Posted: Fri Sep 14, 2007 12:06 am
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.

Re: Poll module not returning result to DB

Posted: Fri Sep 14, 2007 7:51 am
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

Re: Poll module not returning result to DB

Posted: Fri Sep 14, 2007 11:51 pm
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???

Re: Poll module not returning result to DB

Posted: Sat Sep 15, 2007 7:41 am
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

Re: Poll module not returning result to DB

Posted: Sat Sep 15, 2007 1:50 pm
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

Re: Poll module not returning result to DB

Posted: Sat Sep 15, 2007 8:37 pm
by wapcamer
Sorry I could find the button 'create bug'... :o

Re: Poll module not returning result to DB

Posted: Sat Sep 15, 2007 8:40 pm
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

Re: Poll module not returning result to DB

Posted: Tue Sep 18, 2007 5:54 pm
by wapcamer
Done !