Page 1 of 1
Poller problem
Posted:
Sat Jun 20, 2009 1:57 pm
by burginbeth
I am new to javascripting and php but would love to use the ajax poller. I have made the changes recommended in some of the posts and it is now displaying correctly but it doesn't appear to be registering any votes. If I look at the mysql database via my host my votes are logged but the poller is still displaying all 0%. I'm I being dim? Is there something I haven't done? Any help would be appreciated.
The page is here
Thanks
Posted:
Sun Jun 21, 2009 2:50 pm
by burginbeth
Thanks for that. You are correct the path on that line is wrong and so are the other 3 that find images...
var serverSideFile = 'ajax-poller-cast-vote-php.php';
var voteLeftImage = 'images/graph_left_1.gif';
var voteRightImage = 'images/graph_right_1.gif';
var voteCenterImage = 'images/graph_middle_1.gif';
but when I change them I now get a message...
Getting poll results.
Please wait...
Posted:
Mon Jun 22, 2009 10:43 am
by burginbeth
I've tried...
var serverSideFile = '/poller/ajax-poller-cast-vote-php.php';
and get the same message...
Getting poll results.
Please wait...
If I revert back to my original path...
var serverSideFile = 'ajax-poller-cast-vote-php.php';
it displays the poll results but only 9 out of 47 that have been made.
I have viewed my database and notice that only 9 of the records are actually entered correctly and I don't know why. If I can figure out why 9 votes have been polled correctly and why 38 haven't. I've put a screen grab of my database here...
Why has 38 records had the [optionID] field filled in as 2147483647 instead of either 1, 2, 3, 4 or 5 (excellent, very good, good, fair or poor). Is this my problem?
Posted:
Mon Jun 22, 2009 12:39 pm
by burginbeth
I've sent Chris a pm of the code in ajax-poller-cast-vote-php.php but couldn't see any references to my db password.
I can see where Chris has entered several votes that have polled but a couple that have not. Chris, what do you mean by 'calling the url directly'?
Will comment out the line in ajax.js in a mo.
Thanks Chris
Posted:
Mon Jun 22, 2009 12:46 pm
by burginbeth
Posted:
Mon Jun 22, 2009 12:50 pm
by burginbeth
Posted:
Mon Jun 22, 2009 1:06 pm
by burginbeth