|
|
easy Poll List of Categories
easy Poll - unlimited Poll Manager
- I receive a "Permission denied" JavaScript error or the "Back to Poll" link does not show up after submiting an XML poll. It works fine from my local machine, but not on my website.
- Can I add extra fields to my polls to gather more information?
- Can my visitors cast multiple votes simultaneously?
- Can I create and manage multiple polls?
- How do I add shade to the result bars?
- How do I display results on any page?
- Sometimes the X axis disappears or is not shown even though I have it switched on, why?
- How do I have the poll open in a new window?
- How do I link to the complete list of current polls?
- Why do I receive a "Back" button and nothing else after a vote?
-
I receive a "Permission denied" JavaScript error or the "Back to Poll" link does not show up after submiting an XML poll. It works fine from my local machine, but not on my website.
This is because the URL form tag's action attribute does not match the URL in your website's browser. In particular, one of them is probably missing the "www." protion of the URL.
If the page you're on is :
http://www.yourdomain.com/poll.html
then the form tag should also include the
www.
-
Can I add extra fields to my polls to gather more information?
Yes as of version 2.3 you can. Simply add additional fields to the generated code. You may add as many as you like. To require the fields, use this hidden form field :
<input type="Hidden" name="required" value="First_name,Age">
Do not use spaces in the value. Separate each required field with a comma as in the above example.
-
Can my visitors cast multiple votes simultaneously?
No, each voting booth has it's own form and each vote must be cast individually. Consider eSurvey which allows you to create check boxes and all form fields.
-
Can I create and manage multiple polls?
Yes, as many as you like
-
How do I add shade to the result bars?
This is only available with the horizontal graph as of version 2.4. See our polls for an example. The script will add shade to the horizontal bars if called directly or via SSI. If you're calling results using Javascript, you need to add the following style to the page you're displaying the results on.
<style>
.shade {border-left:white solid 0px;border-top:white solid 0px;border-right:#444444 solid 2px;border-bottom:#444444 solid 2px;}
</style>
-
How do I display results on any page?
When you log in to the admin section, click on one of the Gray colored "Code" links. Then copy and paste the generated code in to any web page. The code will dynamically display the poll's results where ever you place the code.
If you're displaying results for multiple polls, placing the generated script tags in tables allows you to position the graphs neatly.
-
Sometimes the X axis disappears or is not shown even though I have it switched on, why?
This occurs if the maximum votes for any of the options are less than 50%. To keep the bars from appearing to far from the figures, the length of the bars are multiplied accordingly so they extend further toward the figures displayed on the right.
-
How do I have the poll open in a new window?
By default, when the form is submitted, the poll will display the results in the same window. To have the results displayed in a customized new window, after generating your code, you must make two changes.
1) Add the following red text to your form tag :
<form action="...?cast" method="post" target="ePoll" onsubmit="popePoll()" >
2) Create the target window by copy and pasting the following code to the top of the web page you pasted the generated code to :
<script language="JavaScript" type="text/javascript">
<!--
ePoll = "";
function popePoll(psjs_url){
width = 200; // 200 pixel wide window
left = (screen.availWidth/2) - width; // this will center it
if(ePoll){
if(ePoll.closed){
ePoll = window.open("", "ePoll", "top=100,left=" + left + ",width=" + width + ",height=250,resizable=1,toolbar=0,scrollbars=1,location=0,status=1,menubar=0");
ePoll.focus();
} else {
ePoll.focus();
}
} else {
ePoll = window.open("", "ePoll", "top=100,left=" + left + ",width=" + width + ",height=250,resizable=1,toolbar=0,scrollbars=1,location=0,status=1,menubar=0");
ePoll.focus();
}
}
// -->
</script>
The above code will pop open a window that is 200 pixels wide x 250 pixels high, 100 pixels from the top of the screen, and centered.
-
How do I link to the complete list of current polls?
Append the following string to your copy of vote.cgi :
?list
The full anchor would look something like :
<a href="http://www.yourdomain.com/cgi-bin/vote.cgi?list">Full list of polls </a>
Remember to enter the correct path to your copy of vote.cgi
-
Why do I receive a "Back" button and nothing else after a vote?
You need to add the following marker to your header in the Admin Settings :
%%%message%%%
The marker will be replaced with the error message encountered, such as "You have already vote for blah blah on date", for example.
|
|
|