By
RobElliott
|
Table of Contents
|
Description
PollDaddy is an excellent online, customisable, tool for creating polls and surveys. It is possible to embed a PollDaddy poll in your wikidot page. This does not yet use [[embed]]...[[/embed]] tags but can be embedded using html code and an iframe.
PollDaddy Script
After you have created your poll in PollDaddy it will give you code that looks like this:
You need to copy all that code.
Code
html
In your wiki page add html code, putting your PollDaddy code inside the body tags:
[!--
[[code type="html"]]
<html>
<head>
<title>PollDaddy</title>
</head>
<body>
<script type="text/javascript" charset="utf-8" language="javascript" src="http://static.polldaddy.com/p/1466617.js"></script><noscript> <a href ="http://answers.polldaddy.com/poll/1466617/" >Do you think a wikidot conference in 2010 is a good idea?</a> <br/> <span style="font-size:9px;"> (<a href ="http://www.polldaddy.com"> surveys</a>)</span></noscript>
</body>
</html>
[[/code]]
--]
iframe
You then need to reference that code by adding an iframe as follows using your site address:
[[iframe http://www.strathviewconsultants.wikidot.com/support:polls/code/1 width="400" height="350" scrolling="no" frameborder="0"]]
If the html code was the first html code on that page then you use /code/1, if it was the second use /code/2 and so on.
For your poll you will probably need to adjust the width and height.
In action
The result is as follows:
Another Example :
from MisterSCOTCHin the comments
<html> <head> <title>PollDaddy 1</title> </head> <body> <script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/1866640.js"></script><noscript> <a href="http://answers.polldaddy.com/poll/1866640/">Vorschläge für die Stammtischwoche 2009-08-10 bis 2009-08-19</a><span style="font-size:9px;">(<a href="http://answers.polldaddy.com">polling</a>)</span></noscript> </body> </html>
In action
The result is as follows:
Done with:
[[iframe http://snippets.wikidot.com/code:polldaddy/code/3 width="400" height="350" scrolling="no" frameborder="0"]]
Author
Rate this solution
If you think this solution is useful please increase the rating.






I used the code provided with my poll and inserted my information. When I put it on the page, in the box was not the poll, but an image of my wiki. Has anyone else ran into this?
same issue for me
Please - show us your code of your wiki page ( by using code block) !
It does not give us any idea what could happen…
Edit: on your page: http://stammtischba.wikidot.com/start there was a try of polldaddy I think, but I cannot see any comment in the history…
I did it exactly according to this howto but had to remove the code since it only showed an image of my wiki in a separate frame. So, in facts it's not existing anymore but i will post the code i used here:
and then i put this somewhere in the page:
I made as an example your polldaddy script in the page above - "another example" you will see:
1. NO line breaks in the html code in the scripting!
2. have a look on the used iframe line!
You have of course to replace the
[[iframe http://www.strathviewconsultants.wikidot.com/support:polls/code/1 width="400" height="350" scrolling="no" frameborder="0"]]
WITH YOUR SITENAME AND PAGE NAME!
Edit: in Firefox werden wegen der Cookies doe letzen Änderungen nihctr sofort gezeigt..
Refresh helps - or have a look in IE…
Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)
Wollen Sie Wikidot helfen im deutschen » Handbuch ?
sure i did exchange the "http://www.strathviewconsultants.wikidot.com" with the url of my wiki (http://stammtischba.wikidot.com/start) but i guess the problem was that ff needs a refresh of the page.
Thx for the help