Nested Poll


(Samantha Brown) #1

Hi everyone,

 

I'm having some issues displaying a polls results on the same page directly after voting.

 

I've used the following on my page: %globals_asset_contents_raw:ID% to place the poll, however when I click Vote, it redirects me to a blank new window with the results. I want it to refresh the page with the embedded results, instead of redirecting or opening a popup window. After I voted and I manually refreshed the page, the results display as expected (multiple vote disabled).

 

I've even tried preventing the default action of the submit, but it still redirects me.

 

For the moment, I've added the poll as an iframe, but I've had to attach all my stylesheets etc.


(Ryan Archer) #2

You are probably going to have big issues with that due to caching. It’s painful.


(Bart Banda) #3

You might be best off ajaxing the poll in after it’s submitted, you can get around caching in that way as well.