Location: PHPKode > scripts > AJAX Voting Poll System > VotingPoll.AJAX/Distribution/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
	<head>
		<title>Acid.JS Web 2.0 Component Library | VotingPoll.AJAX @ Martin Ivanov</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="author" content="Martin Ivanov" />
		<meta name="keywords" content="ajax voting poll, ajax rating system, ajax poll system, web 2.0 voting poll, ajax polling script, web 2.0 ajax voting poll system" />
		<meta name="description" content="Web 2.0 AJAX voting poll system" />
		<link rel="stylesheet" type="text/css" href="Common/Styles/Styles.css"></link>
		<!-- import component's runtime libraries -->
		<?php include "VotingPoll.AJAX/Assets/VotingPoll.AJAX.Runtime.inc" ?>
		<!-- / import component's runtime libraries -->
		<script type="text/javascript">
		// initialize voting poll on page load
		votingpollajax.pageload({
			placeholder: "voting-poll-1",
			defaultselectedradio: 1,
			skin: "Vista",
			datafile: "voting-poll-1.txt",
			thankyouforvotingmessage: "Thank you for voting",
			submitbuttontext: "Cast my Vote",
			pollwidth: "164",
			submitbuttonwidth: "100"
		});
		
		//initialize voting poll on demand
		function initOnDemand()
		{
			votingpollajax.demand({
				placeholder: "voting-poll-2",
				defaultselectedradio: 0,
				skin: "Vista",
				datafile: "voting-poll-2.txt",
				thankyouforvotingmessage: "Thank you!",
				submitbuttontext: "Vote Now",
				pollwidth: "150",
				submitbuttonwidth: "100"
			});
		}
		</script>
	</head>
	<body>
		<div class="demoHeader">
			<h1><a href="./" title="VotingPoll.AJAX">VotingPoll.AJAX 2.0</a></h1>
			<div>
				<ul>
					<li><a href="http://acidjs.wemakesites.net/voting-poll.html" title="VotingPoll.AJAX Online">VotingPoll.AJAX Online</a></li>
					<li><a href="http://acidmartin.wemakesites.net/DownloadAdmin/click.php?id=167" title="Download">Download</a></li>
					<li><a href="http://acidjs.wemakesites.net/buy-software.html" title="Purchase Full Version">Purchase Full Version</a></li>
					<li><a href="http://acidjs.wemakesites.net/" title="Acid.JS Web 2.0 Component Libary">Acid.JS Web 2.0 Component Libary</a></li>
				</ul>
			</div>
		</div>
		<div class="demoContent">
			<h3>What is VotingPoll.AJAX</h3>
			<p>VotingPoll.AJAX is a cool Web 2.0 component for creating voting polls on webpages. It is fully AJAX-driven and extremely easy to integrate. It is a matter of minutes to have a custom voting poll up and running on your website and its setup requires basic knowledge of HTML and JavaScript.</p>
			<p>The component supports multiple instances of voting polls with custom settings and skins on a single page. All polls are stored in simple flat .txt files and mySQL is not required at all.</p>
			<h4>Initialize on Page Load</h4>
			<p>The most common way to initialize VotingPoll.AJAX is on page load, by using its <code>pageload()</code> method:</p>
			<div id="voting-poll-1"><!-- / --></div>
<pre><code>votingpollajax.pageload({
	placeholder: "voting-poll-1",
	defaultselectedradio: 0,
	skin: "Vista",
	datafile: "voting-poll-1.txt",
	thankyouforvotingmessage: "Thank you for voting",
	submitbuttontext: "Cast my Vote",
	pollwidth: "150",
	submitbuttonwidth: "100"
});</code></pre>
<pre><code>&lt;div id="voting-poll-1"&gt;&lt;!-- / --&gt;&lt;/div&gt;</code></pre>
			<h4>Initialize on Demand</h4>
			<p>VotingPoll.AJAX can also be initialized on demand, for example in AJAX scenarios or upon user interaction, e.g. click. Click <a href="javascript: void(0)" onclick="initOnDemand()" title="Initialize a voting poll on demand">this link</a> to create a voting poll on demand without reloading the page by using its <code>demand()</code> method.</p>
			<div id="voting-poll-2"><!-- / --></div>
<pre><code>votingpollajax.demand({
	placeholder: "voting-poll-2",
	defaultselectedradio: 1,
	skin: "Vista",
	datafile: "voting-poll-2.txt",
	thankyouforvotingmessage: "Thank you!",
	submitbuttontext: "Vote Now",
	pollwidth: "150",
	submitbuttonwidth: "100"
});</code></pre>
<pre><code>&lt;div id="voting-poll-2"&gt;&lt;!-- / --&gt;&lt;/div&gt;</code></pre>
			<h4>Skins</h4>
			<p>The full version of the control is shipped with a set of 12 skins, while the trial version includes just one - Vista.</p>
			<h4>Installation and Usage</h4>
			<p>Please, refer to the manual of the control for complete reference on installation and usage.</p>
			<h4>Differences Between the Lite and Full Version</h4>
			<p>The trial version of the control is for consideration and testing purposes only and its usage on live websites is prohibited. Using the trial version on live websites unlawful, and legal steps may be taken against websites that use it. Please, refer to the License Agreement included in the distribution of the script prior to using it.</p>
			<p>The trial version is fully functional, but:</p>
			<ul>
				<li>Displays a nag screen before vote submission.</li>
				<li>Only one skin is included, while the full version is shipped with the full set of 12 skins.</li>
			</ul>
			<p>If you wish to use VotingPoll.AJAX on a live website without trial messages and get all of its skins, you may <a href="http://acidjs.wemakesites.net/buy-software.html" title="Purchase the full version of VotingPoll.AJAX">purchase the full version for USD30 via PayPal from this page</a>.</p>
		</div>
	</body> 
</html>
Return current item: AJAX Voting Poll System