Skip to main content
Known Participant
December 7, 2012
Question

CF Poll Options

  • December 7, 2012
  • 2 replies
  • 1547 views

I am trying to create a coldfusion poll on a page.  Is there a way to do it so that page doesnt neccessarily reload?  Has anyone done this and can give me a few hints or code to get me started?  Thanks.

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
December 12, 2012

TheScarecrow wrote:

I am trying to create a coldfusion poll on a page.  Is there a way to do it so that page doesnt neccessarily reload?  Has anyone done this and can give me a few hints or code to get me started? 

A poll is basically a form. By default, ColdFusion pages do not reload. So, just write down your questions and use cfform fields to collect the answers.

Inspiring
December 7, 2012

Your question is very vague.

Known Participant
December 7, 2012

Pretty simple questions really... can the poll be answered without the page having to reload and show the results by loading in another page or something like that. 

Inspiring
December 7, 2012

Put the form in a div.  Submit it to javascript.

Have javascript send an ajax request to some coldfusion code which processes the form variables and sends back display code.  Then, still using javascript, replace the contents of the div with the display code.