Web Tools and Component: File Upload, Flash Chart, Flash Stars Rating, Flash Calendar

 
JOBDAO HOME Products Download Purchase Support

  Jobdao Flash Stars Rating System - Live Demo

Feature | User Manual | Live Demos | Download & Purchase


Easy to creates dynamic stars rating system in the Macromedia Flash™ SWF format.

Easy, interactive, XML data-driven Flash Stars Rating System for you. Pretty rating stars can help you to find out what your website visitors think, like, need and want.  Why wait? Put Jobdao Flash Stars Rating System to work now! 

Flash Samples

1. Stars Rating System example1.

data file sample1:

<jrating>
<licensekey>1</licensekey>
<cstyle>4</cstyle>
<defaulttitle>How do you rate this sofware?</defaulttitle>
<voteurl>jstarsrate/vote.asp</voteurl>
<voteid>1</voteid>
<allowvote>1</allowvote>
<showvotes>percent</showvotes>
<showresults>percent</showresults>
<startitle1>do not user it</startitle1>
<starvotes1>1</starvotes1>
<startitle2>I've seen better software</startitle2>
<starvotes2>2</starvotes2>
<startitle3>it's good</startitle3>
<starvotes3>5</starvotes3>
<startitle4>highly recommended</startitle4>
<starvotes4>1</starvotes4>
<startitle5>Best choice</startitle5>
<starvotes5>6</starvotes5>
<totalstars>5</totalstars>
<totalvotes>15</totalvotes>
<currentstar>5</currentstar>
</jrating>

Code To insert this Stars Rating System to HTML page:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="280" height="40" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="jstarsrate.swf?datafile=jstarsrate/getdata.asp?id=1%26cstyle=4" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent" />
<embed src="jstarsrate.swf?datafile=jstarsrate/getdata.asp?id=1%26cstyle=4" quality="high" bgcolor="#ffffff" width="280" height="40" name="JFStarsRate" align="middle" wmode="transparent" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

 

2. Stars Rating System example2.

data file sample2:

<jrating>
<licensekey>1</licensekey>
<cstyle>1</cstyle>
<defaulttitle>How do you rate this website?</defaulttitle>
<voteurl>jstarsrate/vote.asp</voteurl>
<voteid>2</voteid>
<allowvote>1</allowvote>
<showvotes>votes</showvotes>
<showresults>total</showresults>
<startitle1>do not visit it</startitle1>
<starvotes1>0</starvotes1>
<startitle2>I've seen better website</startitle2>
<starvotes2>0</starvotes2>
<startitle3>it's good</startitle3>
<starvotes3>0</starvotes3>
<startitle4>Best choice</startitle4>
<starvotes4>0</starvotes4>
<totalstars>4</totalstars>
<totalvotes>0</totalvotes>
<currentstar>0</currentstar>
</jrating>

3. Stars Rating System example3.

data file sample3:

<jrating>
<licensekey>1</licensekey>
<cstyle>2</cstyle>
<defaulttitle>How do you rate google.com</defaulttitle>
<voteurl>jstarsrate/vote.asp</voteurl>
<voteid>3</voteid>
<allowvote>1</allowvote>
<showvotes>off</showvotes>
<showresults>thank_you</showresults>
<startitle1>do not search it</startitle1>
<starvotes1>0</starvotes1>
<startitle2>I've seen better search engine</startitle2>
<starvotes2>0</starvotes2>
<startitle3>it's good engine</startitle3>
<starvotes3>0</starvotes3>
<startitle4>Best engine</startitle4>
<starvotes4>0</starvotes4>
<totalstars>4</totalstars>
<totalvotes>0</totalvotes>
<currentstar>0</currentstar>
</jrating>


Script Samples

ASP script samples for getting data (getdata.asp file)
The script connect to database, execute query and print result.

<%Response.contenttype="text/xml"%>
<jrating>
<licensekey>1</licensekey>
<%
voteid=Request.QueryString("id")
cstyle=Request.QueryString("cstyle")

dim defaulttitle,allowvote,showvotes,showresults,totalstars,totalvotes,currentstar


set objCoet=Server.CreateObject("ADODB.Connection")
DataBasePath=Server.MapPath("jstarsrate.mdb")
objCoet.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&DataBasePath
sql="select * from vote where id="&voteid
set objRs=objCoet.execute(sql)
if not objRs.EOF then
defaulttitle=objRs("title")
allowvote=objRs("allowvote")
showvotes=objRs("showvotes")
showresults=objRs("showresults")
end if
%>
<cstyle><%=cstyle%></cstyle>
<defaulttitle><%=defaulttitle%></defaulttitle>
<voteurl>jstarsrate/vote.asp</voteurl>
<voteid><%=voteid%></voteid>
<allowvote><%=allowvote%></allowvote>
<showvotes><%=showvotes%></showvotes>
<showresults><%=showresults%></showresults>
<%
sql="select * from voteitem where voteid="&voteid&" order by itemid"
set objItem=objCoet.execute(sql)
totalstars=1
totalvotes=0
currentstar=0
maxvote=0
do while not objItem.EOF
%>
<startitle<%=totalstars%>><%=objItem("title")%></startitle<%=totalstars%>>
<starvotes<%=totalstars%>><%=objItem("votes")%></starvotes<%=totalstars%>>
<%
if maxvote<int(objItem("votes")) then
maxvote=int(objItem("votes"))
currentstar=totalstars
end if
totalvotes=totalvotes+int(objItem("votes"))
totalstars=totalstars+1
objItem.MoveNext
loop
objItem.close
set objItem=nothing

totalstars=totalstars-1
%>
<totalstars><%=totalstars%></totalstars>
<totalvotes><%=totalvotes%></totalvotes>
<currentstar><%=currentstar%></currentstar>
</jrating>
<%
objCoet.close
set objCoet=nothing
%>
 

 

ASP script samples for vote (vote.asp file)

<%
voteid=int(Request.Form("voteid"))
itemid=int(Request.Form("itemid"))

set objCoet=Server.CreateObject("ADODB.Connection")
DataBasePath=Server.MapPath("jstarsrate.mdb")
objCoet.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&DataBasePath

objCoet.execute("update voteitem set votes=votes+1 where voteid="&voteid&" and itemid="&itemid)
objCoet.close
set objCoet=nothing
%>
 

 

Feature | User Manual | Live Demos | Download & Purchase

Just $19, Order Jobdao Flash Stars Rating System now!

Want to try it?  Download your free 30-day evaluation copy of Jobdao Flash Stars Rating System

 

Copyright © 2006-2007 Jobdao. All Rights Reserved.