Is it possible, that advance poll can be submitted with Ajax, even if the poll itself is rendered with ajax?
I would need, that Poll form is not rendered with the whole page in the browser. I would need to load it later with ajax, and then place it with Javascript into HTML structure.
For now I am using such custom solution, but it does not work yet:

I In my custom javascript code, I use $.get method to call ajax request to return poll content. Ajax callback returns output with following code:

$node_arr = node_view($node, 'teaser');
$node_output = drupal_render($node_arr);
$data = array('output' => $node_output);
drupal_json_output($data);

This ajax callback is correctly returning poll content. In javascript, I place received output in HTML struture to render poll on the page. The problem is, that such poll form cannot be submitted with Ajax. When I click on the submit button, the whole page is reloaded instead.

Comments

tomas.teicher created an issue. See original summary.

tomas.teicher’s picture

Issue summary: View changes
tomas.teicher’s picture

Issue summary: View changes