Go Back   CHECKBOX® Online Community > Other Products > Ultimate Poll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-02-2007, 09:02 AM
rwarriner
Guest
 
Posts: n/a
Default Poll Won't Post to DB

I setup my poll, it looks great and works great except that it's not recording results to the DB. It doesn't give any errors - simply displays 0 responses and 0% for all the answers.

Not sure where to trouble shoot first - the DB connection seems to be working as I can access.

Also - the AJAX results post isn't working. Did I have to do something to add an element to my page zone for this to display? The pop-up works fine so I'm using that for now.

Ideas?
Rebecca Warriner
rwarriner@hitachiconsulting.com
Reply With Quote
  #2 (permalink)  
Old 08-02-2007, 09:25 AM
Administrator
 
Join Date: Aug 2007
Posts: 9
Default

Rebecca,

Have you made any changes to the source code of the application? Specifically, have you edited processResponse.asp in the root directory?

This is the page that handles posting the response to the database, so is the most likely source of the problem.

Also, are you using the SQL Server database or one of the two Access Databases?

Finally, does the browser have javascript enabled?

Thanks,

James
Prezza Technologies
Reply With Quote
  #3 (permalink)  
Old 08-02-2007, 09:32 AM
rwarriner
Guest
 
Posts: n/a
Default

I did change a few things in process master. I commented out 2 lines with the copy right code and I changed the line to increase height of the popup for the display. That's it. I'm one of those kind of developers - should I try to restore this page from the zip and see if that fixes it?
<!-- CORRECTION - I edited the poll output include file -->
"width=" & (intWidth * 2) & ",height=" & (intHeight * 2.5) &

The page does have javaScript enabled and I'm using SQL Server.

Thanks!
R

Last edited by rwarriner; 08-02-2007 at 09:38 AM.
Reply With Quote
  #4 (permalink)  
Old 08-02-2007, 09:46 AM
Administrator
 
Join Date: Aug 2007
Posts: 9
Default

Yes, I would recommend restoring the file.
Reply With Quote
  #5 (permalink)  
Old 08-02-2007, 09:54 AM
rwarriner
Guest
 
Posts: n/a
Default

I restored the file and no change.

Maybe it's in my settings?
Poll - General:
Post Response - I can't get any of these to do anything different. They all just do the pop-up (with no writing to the DB)

Results - Refresh Page & Show Results - just refreshes page but results don't show up.
Pop-up - shows popup window (no writing to DB)
AJAX - doesn't do anything. Am I supposed to add something to my page to make AJAX work?

Are there any dependencies between these 2 settings maybe?


Rebecca
Reply With Quote
  #6 (permalink)  
Old 08-02-2007, 10:02 AM
rwarriner
Guest
 
Posts: n/a
Default

I created a new poll - very basic - just "TEST" for questions, answers, etc. I got one response and can't vote again. Something to do with only letting each machine only vote once, maybe...?
Reply With Quote
  #7 (permalink)  
Old 08-02-2007, 10:11 AM
Administrator
 
Join Date: Aug 2007
Posts: 9
Default

Each machine should only be able to vote once unless the "Allow user to respond again" display option is selected. If this option is not selected, when you refresh the page, you should not see the voting screen but instead the summary of the results. Is this what you are seeing?
Reply With Quote
  #8 (permalink)  
Old 08-02-2007, 10:16 AM
rwarriner
Guest
 
Posts: n/a
Default

No - I have this selected and it just displays the poll again.
Reply With Quote
  #9 (permalink)  
Old 08-02-2007, 10:47 AM
Administrator
 
Join Date: Aug 2007
Posts: 9
Default

If you have this option selected, you should be able to vote again. However, your second vote should not be recorded in the database. If however, you vote differently, the change should be reflected in the database.

When you say that AJAX option does nothing, do you mean that a postback still occurs or that nothing happens, i.e. the results never display?
Reply With Quote
  #10 (permalink)  
Old 08-02-2007, 10:55 AM
rwarriner
Guest
 
Posts: n/a
Default

The 2nd votes are not being recorded. Something to do with the cookie maybe?

The AJAX option just really doesn't do anything. Could be tied to the first issue. Let's figure that out first.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 04:09 PM.


SEO by vBSEO 3.2.0