Just wondering about sizing.. can I make it what ever height and width that I want?
Yes, however, the height changes dynamically to fit the content. As an example, the following sample is using a div that is 400px wide and 400px high. The width fills out to the full 400px but you can see how the height of the poll does not fill the full 400px of the div container…
Are there any other template other than the default ?
There are 5 CSS skins that come with the package, (blue, dark, green, grey, purple) that will change the colors and images used by the poll widget. The screenshots show the appearance of each skin.
The skin can be selected by editing the jaxpoll/jaxpollsettings.js file and modifying the jaxSkin value.
As far as the HTML layout of the widget, there are no other templates besides the default templates in the templates/ directory.
Hi, can I change the number of votes for every option on the poll ?
The short answer is no.
The long answer is yes but with a measure of difficulty.
The administration page does not provide the capability of setting the poll results manually. Manipulating the poll results is theoretically possible but would require manually editing the JSON results file for a poll or writing a custom PHP script that uses the JaxPoll PHP class to insert responses.
Each poll has a results file saved in the jaxpoll/json/ path with a filename based on the poll ID. I.E. jaxpoll/json/jaxresults_51bfbc609721e.json.
This results file does not contain totals for each poll question, it contains a record of each individual poll response. The totals displayed in the poll are always recalculated from the list of responses each time the poll results are displayed.
Manually editing the JSON results files for the polls is possible but not something I would recommend as you would risk damaging the JSON string in a way that makes it no longer recognizable as JSON thus breaking the poll.
If you were trying to import results from some other polling application into a JaxPoll then the poll responses could be added to a poll programatically using a custom PHP script that calls the JaxPoll::answerPoll() function to add a response into a JaxPoll for each response from the source poll.
Awesome script, easy to implement and very pretty to look at … thanks
Ohhh btw, it can be found working here … http://www.facepetz.com
Thanks for the purchase and feedback.
I am thinking of purchasing your poll script but I wanted to test out a poll snippet on my website to insure that the poll will show up since I have to paste the html code directly into a widget box. Can you provide a full snippet code for me to try out on my website? I tried to use the snippet code from the demo but I didn’t know what to enter for the full url.. Thanks!
You can try the following snippet for the sample poll but keep in mind that browser security settings will likely prevent this from working. If you know how to temporarily disable your browser security settings then it may be possible to test with the remote code.
Is there a way I can test the script for you? Is this a Wordpress site?
Thanks but I went ahead and purchased your script earlier (it’s working) but I’m not sure if I’ll be able to use it, I sent you a message regarding my problem.. And no it’s not a wordpress site.
AWESOME Script and EXCELLENT Customer Support! The developer took the time to help me get the POLL script to work within the coding limitations of my CMS website template.
I wanted to know if you are able to customize the script to include FaceBook and Twitter Like Buttons and the Number of Likes to each created poll. Let me know if you can and what the cost would be…
I didn’t hear back in the private message if you resolved this so I’ll just post a general recommendation here…
The social widgets are generally tied to a specific URL, however, when using the simplest poll setup that allows you to automatically stream polls the URL for the page does not change. So you would end up with the social widgets connected to changing polls.
So the key to the solution is to have a specific URL for each poll so the social widgets will collect data for a specific poll.
The downside to this method is that you will need to manually update the iframe URL in your CMS and the poll page HTML that displays the poll every time you want to cycle to a new poll. So you lose the automatic streaming of polls.
The more technical method that would do all of this automatically is similar but requires some additional PHP coding.
To automate the process you would leave the iframe source URL as the simple URL with no parameters. You would then convert your HTML page for the poll into a PHP page so you can make it dynamic. At the top of the page you would check to see if a parameter was passed in the URL for the poll ID value. If not then you load the JAXpoll PHP class and call the getLatestPollID() function to get the ID value of the current poll and then do a redirect to the same URL but with the ID attached as an URL parameter. You would then use this parameter to dynamically format the social media widget code in the page to recognize this poll URL.
Not a very detailed response but hopefully that will at least provide some ideas on how to proceed and achieve the desired results.
Thank you very much, I did get sidetracked. I may take a crack at implementing and if I run into a problem considering I have to work with widget boxes then I may enlist your services. Thanks for the excellent customer support!!!
No problem. If you go the automated route using PHP then you will find that I documented all the functions in the source code. You can get a good idea on how to use the JaxPoll class by reviewing the comments in the jaxpoll/class/JaxPoll.php class file and by reviewing the comments and code in the administration script in jaxpoll/jaxadmin.php
More than likely I will have to try and go the manual route due to the limitations of my CMS template only allowing html via widget boxes and iframes, direct php wont work for me as far as I know..
Nice script, after I vote the box increases in height, how would I make a flexible box?
At the moment after voting the poll box covers content below it…
Oh you can’t have multiple polls on 1 page?
The poll widget will adjust the height to fit the questions and responses. This may cause other elements in your page to shift depending on how you have your page layout and CSS. If you are experiencing this on your site then I would suggest using an additional wrapper around the widget DIV tag with a fixed height to fit the maximum height of the poll widget.
The widget was designed to make implementation as simple as possible which unfortunately made multiple polls on one page a difficult proposition. What you can do is create a simple page for each individual poll and then load them into your main page via iframe tags.
If you provide an URL to the page you are working on then I can provide more detailed recommendations.
Hello, I hope things are going good.. I wanted to know how to enlarge the fonts for the polls, is it thru css?.. Please follow up and advise… Thank you!
Hello, You are correct, you can adjust the font sizes in the theme CSS. As an example, the demo site is using the purple skin theme. You would edit the file jaxpoll/css/skin-purple.css.
Inside the theme file you will find various font-size settings. the #jaxpoll id has the overall font-size for the poll and below that you will find various elements such as the li.jaxpolltitle element font-size setting.
If you edit the CSS of a theme file then make sure you create a backup of the original before you start. You can also create your own theme by copying one of the theme files to a new skin name. You can then edit the theme and in your admin settings select your new theme.
You can see the theme file naming convention in the documentation here…
I am using the Purple Skin but when I increase the font sizes in the Purple CSS the displayed size on the poll isn’t increasing; Any suggestions?
Can you post a link to the poll? I’ll take a look and see if something is overriding the CSS.
Here’s the link: www.GETtheTZelement.com/celebrity-fitness-poll.html
From here it looks like the changes worked. The title text and the size of the numbers when I hover over a result bar are larger.
I did notice that you had not changed the first font size setting in the #jaxpoll CSS section, it is still 14px. Was that intentional?
If you are not seeing the CSS changes in your browser then you may need to refresh the browser cache. On Chrome and I think FireFox you hold down shift when you click on the page refresh. For IE I think it is F6 or F5 to reload the cache.
Thank you much; it was the browser refresh in Chrome
Hello! You provided me once before; can you give me an IFrame Code Example again; I want to see if I can get the poll to work in WordPress.. Thank You Much!
For the iframe in the page I would suggest something like the following…
<iframe name=”pollframe” id=”pollframe” src=”http://yourdomainname.com/pollpage.html” frameborder=”0” border=”0” cellspacing=”0” style=”border-style: none; width: 200px; height: 250px;”></iframe>
You then need to create an HTML page pollpage.html where it will be accessible using that URL in the iframe. Inside this HTML page you would have something like the following…
<meta charset=”utf-8” />
Note that the <script> tag in this example must have a src=”” value that points to your jaxpoll.js so you may need to adjust the value.
If you have trouble getting it to work then post an URL I can look at and I can provide some suggestions.
Ok Great; I’ll give the code a try and let you know how it turns out..
Just wanted to let you know that the poll is working great as is in Wordpress without needing to iframe it. Great script!
Does anyone know if it is possible to run jaxchat and jaxpoll on the same webpage? I am getting an “Unknown command!” error in the jaxchat screen. It appears to be an ajax command that isn’t recognized.
Unfortunately the two Jax scripts cannot run in the same page unless one is running via an iframe. There are multiple conflicts in variables and methods due to the fact that both scripts were developed from the same conceptual base code.
Thanks for the quick response … I can run one in an iFrame.
Just bought jaxpoll. is it possible to add the percentage figure at the end of the bar..
With a little PHP and HTML code, yes.
The HTML for the poll results is generated in the JaxPoll PHP class. With your favorite code editor open up the file jaxpoll_package/jaxpoll/class/JaxPoll.php and at line 319 you will see the getResultsHTML() function.
Further down at line 352 there is a foreach loop that creates the HTML LI tags for each answer result. And looking closer you will see at line 362 where the LI tag with the class jaxresultbar is created.
Modify this line to add the HTML you want with the result percentage. The result bar is based on a percentage so it is already calculated for you. Just use the $resultPercent variable for the percent value and add the % character.
Thanks for the quick response..
The $resultPercent is already there on line 362.
When I add the % it fails to load the poll I’ve tried a few different options.
$answersHTML .= ‘
$answersHTML .= '<li class="jaxresultbar" data="' . $resultPercent . '">' . '<div style="position:relative; left:101%;">' . round($resultPercent) . '%</div>' . '<span class="jaxresulthover">' . $pollCopy->responseTotals[$index] . '</span></li>';
I added a new DIV tag inside the LI tag and placed the percent number inside the DIV with some styling to make it fall outside of the bar.
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Unlimited graphic downloads & digital courses. Only $29/month
22,000+ templates & 1,000+ courses
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work