0

ユーザーがアンケートを通じてフィードバックをくれるたびに、ユーザーから収集した情報を失いたくありません。コードは完全ではありませんが、全体的なアイデアはそこにあります。この質問がすでに解決されている場合は申し訳ありませんが、この投稿を書くことを検討する前に周りを見回しました.

    <script type="text/javascript" src="script.js">
        function sendForm() {

        var previousPollResults;
        // array read from webpage which will be added to.

        for (var i=0; i < document.pollForm.choice.length; i++) {
            if (document.pollForm.choice[i].checked) {
                previousPollResults.choice[i]+=1;
            } else {
                //nothing
            }
        }

    <form name="pollForm">
        <input type="radio" name="choice" value="java" checked />Java<br>
        <input type="radio" name="choice" value="webDesign">Web Design<br>
        <input type="radio" name="choice" value="blogging" checked />Blogging<br>
        <input type="radio" name="choice" value="arduino">Arduino<br>
        <input type="radio" name="choice" value="digitalElectronics" checked />Digital Electronics<br>
        <input type="radio" name="choice" value="onlineResources">Online Resources <br>


        <input type="button" value="send" onclick="sendForm()">
    </form>
4

1 に答える 1

-1

Since you are using a Blogger page and NOT hosting your own site, I'm assuming they should have a poll tool setup.

If I remember correctly you wouldn't be able to save any data on/from the site besides COOKIES through JS which wont let YOU keep track of your poll, only the users own polling information when they visit.

READ THIS: Blogger Poll

And this may be an alternative: Server Sided Proxy on Blogger

Or this: Custom Embedded Poll

And: Polls for Blogger

于 2012-05-24T17:19:37.777 に答える