Hi everyone I have a problem I need your urgent help with.
I am trying poll on our website and the ideal situation would be as follows:
click on option
click on vote --> the same page reloads and shows results
bear in mind that poll is a nested content in a homepage, so homepage reloads with results. Multiple voting is disable.
However currently when you click on vote it opens new page, I thought Ok I will put some more info there, what I didn't realize that next time I went on the homepage where poll used to be it replaced it with results (no multiple voting) so I rebuilt results to fit the 180px wide space I allocated to it and decided to use %poll_vote_button_js_new_window% keyword to show results in a new window, but instead of getting a submit button that would submit the poll and open new window I only get this on a front end
[codebox]window.open('', 'results', 'width=185,height=220,location=0,menubar=0,scrollbars=0,statusbar=0,toolbar=0,resizable=0'); document.getElementById("page_poll_31438_poll").target='results'; document.getElementById("page_poll_31438_poll").submit();[/codebox]
It seems location parameter is missing from window.open, but I don't know what to put there.
I've tried this
[codebox]<input type="submit" id="page_poll_31438_poll" class="sq-form-field" onclick=' window.open('', 'results', 'width=185,height=220,location=0,menubar=0,scrollbars=0,statusbar=0,toolbar=0,resizable=0'); document.getElementById("page_poll_31438_poll").target='results'; document.getElementById("page_poll_31438_poll").submit(); ' value="Submit" name="page_poll_31438_poll"/>[/codebox]
It doesn't submit form at all
Help I need to fix it ASAP and I don't know how.
[quote]Hi everyone I have a problem I need your urgent help with.
I am trying poll on our website and the ideal situation would be as follows:
…
It doesn't submit form at all
Help I need to fix it ASAP and I don't know how.[/quote]
Hi Eric,
Please note that the Matrix Forum is not an official support resource, therefore I would suggest logging a ticket with Support so this issue can be investigated.
It seems that the nesting may be causing some issues, however from the code submitted in your post, there is not sufficient information to be certain.
We have entered this into the support section as requested
But as there seems to be something missing in the code I suppose we were just hoping anyone could help us who might have played with the polls
(As you can see the opening and closing tags are missing)
We were hoping for a way around the buttons not working from anyone who might have played with it
button code as below
window.open('', 'results', 'width=185,height=220,location=0,menubar=0,scrollbars=0,statusbar=0,toolbar=0,resizable=0'); document.getElementById("page_poll_31438_poll").target='results'; document.getElementById("page_poll_31438_poll").submit();
[quote]We have entered this into the support section as requested
But as there seems to be something missing in the code I suppose we were just hoping anyone could help us who might have played with the polls
(As you can see the opening and closing tags are missing)
We were hoping for a way around the buttons not working from anyone who might have played with it
button code as below
window.open('', 'results', 'width=185,height=220,location=0,menubar=0,scrollbars=0,statusbar=0,toolbar=0,resizable=0'); document.getElementById("page_poll_31438_poll").target='results'; document.getElementById("page_poll_31438_poll").submit();[/quote]
Mark was mentioning this because he was meaning to raise support request with Squiz, rather than here on the forums.
thankyou guys
I'll reword my question sorry
We understand there is a bug and we have posted this issue in the Support forum,
Here is my question for this forum
Has anyone got a working poll on there site that we can take a look at for ideas of how it looks for them… please
This might give us ideas on how to implement what we have in another way while the bug is being fixed - as we need to get this up today - as it has been advertised…
Thanks everyone
The Support forum along with all other forums on this site is not an official support resource (as Mark mentioned). If you need support asap you need to ring the Squiz Support line. Otherwise, we cannot guarantee that you will get the answer you need from the people on the forums.