PLEASE NOTE:  
You need to be be a licensed user to carry out this tutorial.  
../pollstar100/example1/example1.html is a relative URL. To use it, you must first ensure that you are viewing this help documentation locally from your development platform and not from a webserver. If you have not yet downloaded the help documentation you can get it here. You must also ensure that you install the help documentation under the same target directory that was chosen for the Pollstar100 Demonstration software. This is because the relative links will fail if the help documentation is not residing in the pollstar100/help directory.  
 
 
If you have not already done so, you must now upload the Pollstar100 WCM system files and example Applications files onto your webserver, making sure to preserve the pollstar100/ installation directory hierarchy (this is because the example Applications use relative URLs). Once you have done this you should then be able to load the example pages into your browser from your website. For example:  
 
http://MyWebsite.com/pollstar100/example1/example1.html  
 
If any of these pages failed to load then check the following and try again:  
 
·That the above webpages exist where you think they do on your webserver  
·That the Pollstar100 installation directory hierarchy has been preserved.  
·If your webserver is case-sensitive, check you have used the correct case in your URL.  
·That the Pollstar100 Client exists in the pollstar100/ directory on your webserver  
·The Pollstar100 file permissions  
·You are online  
·Your firewall  
 
 
Ok. The following steps show how the Pollstar100 Client is embedded within your HTML webpage documents. If you are not using Dreamweaver and the process of embedding Flash SWF files within HTML documents is new to you then we suggest you first take a quick look at the section on Embedding The Pollstar100 Client In An HTML Page.  
 
·Use an HTML editor or a standard UTF-8 text editor such as Notepad to open the pollstar100/example1/example1.html file residing locally on your client machine under the Pollstar100 installation directory.  
 
·Notice how, on line 29 under the <OBJECT> tag and on line 37 under the <EMBED> tag, the Pollstar100 Client is referenced using a partial URL. This is how the Pollstar100 Client residing in the local pollstar100/ directory on this machine is invoked when this HTML document is loaded locally.  
 
·Amend line 34 under the <OBJECT> tag by replacing the Minds Eye Pollstar100 Service URL: http://www.the-mindseye.co.uk/pollstar100.php with the absolute URL to the Pollstar100 Service on your webserver. For example:  
<PARAM NAME=FlashVars VALUE="ServiceFile=http://MyWebsite.com/pollstar100/pollstar100.php&DataFile=example1/example1.csv&CustomFile=example1.xml">  
 
·Amend line 48 under the <EMBED> tag by replacing the Minds Eye Pollstar100 Service URL: http://www.the-mindseye.co.uk/pollstar100.php with the absolute URL to the Pollstar100 Service on your webserver. For example:  
FlashVars="ServiceFile=http://MyWebsite.com/pollstar100/pollstar100.php&DataFile=example1/example1.csv&CustomFile=example1.xml"  
 
·Save and close pollstar100/example1/example1.html.  
 
·Load this local HTML document into your web-browser by clicking on the link below. The amended document should invoke the Pollstar100 Client residing in the local pollstar100/ directory on this machine -which in turn will now attempt to connect to the Pollstar100 Service on your webserver.  
 
../pollstar100/example1/example1.html  
 
If this page failed to load then check the following and try again:  
 
·The URL to the Pollstar100 Service on your webserver is correct.  
·If your webserver is case-sensitive, check you have used the correct case in your URL.  
·That the Pollstar100 Service exists in the pollstar100/ directory on your webserver  
·The Pollstar100 Service file permissions  
·The pollstar100/example1/example1.csv file permissions (this file requires read/write permissions)  
·You are online  
·Your firewall  
 
     
The key features here are that the Pollstar100 Client is context-free. The designer uses the Control File Variables in order to provide the Pollstar100 Client with references to the location of the Pollstar100 Service as well as the Custom XML file and Sample Data file. This is the base context that defines a specific custom Pollstar100 Application.  


Note: you might also want to take the time to similarly amend the other three remaining example HTML documents and upload them all to your webserver -it will save us bandwidth and give you control over the Sample Data sets relating to these example Applications.