AP201-205
Ajax Poll Script v2.05
demo-background-image
About

This demo shows you how to add images to a poll.

You can always put an image outside of this poll folder and refer to it by an absolute URL ( which starts with "http://" )

If you want to keep the image in the folder to create a self-contained poll folder, then you need to know the URL to the folder.

getFolderUrl() function returns just what you need. Read tpl.front.inc.php to see how it is used.

Preview
Adding the Poll to Your Web Page

Step 1 Add the following two lines to the <head> section of your web page.

<head>
...
...
<script type="text/javascript" src="/web-poll/jquery.js"></script> <script type="text/javascript" src="/web-poll/ajax-poll.php"></script>
... ... </head>


Step 2 Add the following line to the <body> section of the web page.

The poll will appear inside the <div> tag.

<body>
...
...
<div class='ajax-poll' tclass='demo-background-image'></div>
... ... </body>


NoteThe following HTML code is a minimalist example of a web page that displays the poll.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/web-poll/jquery.js"></script>
<script type="text/javascript" src="/web-poll/ajax-poll.php"></script>
</head>
<body>
<div class='ajax-poll' tclass='demo-background-image'></div>
</body>
</html>