Rate this article - how to?

  • Thread starter Thread starter Ann Miller
  • Start date Start date
A

Ann Miller

I am considering adding a "Rate this article" component in my web site where
readers could, well, rate an article using Radio Buttons on a scale of 1 to
5. (Many web sites have this).

Could some of you guide me in the right direction as to how to do it?
Looking at the source code of such web pages indicates it's done using
javascript but I am not sure.

Any help would be greatly appreciated. Thanks.

Ann
 
JavaScript alone can't do this because in order to save the rating, you need
to update a data collection file on the server.

One way of doing this is to use the FrontPage Save Results component. Create
an HTML form that cotnains the radio buttons and a Submit button, then
right-click the form, choose From Proeprties, and choose whether to save the
results to a file, to e-mail, or to a databse.

The other possibility is to write yourown form handler in ASP.NET or ASP.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
Hi Ann,

It can't be done using javascript - you need some way to store the ratings
and javascript can't store any kind of data. It needs to be done on the
server, very easy to do but we'd need to know what kind of server you're
on - windows or unix - to be able to point you in the right direction.
 
Thanks Jim. The FP Save Results components sound simple enough but would it
display the result (of the votes) immediately either on the same page or
even a small pop-up screen?

I want the result to be saved (for historical reasons) but at the same time
would like it to display the result immediately, preferably on the same
page.

A good example is on this page: http://www.developerfusion.com/show/2190/

Another thought... are there any pre-made, third party solutions to this
that you may know of that I could purchase?

I've done a search on "rate this article" in Google but haven't been lucky
so far.

Thanks again,
Ann
 
Thanks, Jon:

I am on Windows server.

Ann

Jon Spivey said:
Hi Ann,

It can't be done using javascript - you need some way to store the ratings
and javascript can't store any kind of data. It needs to be done on the
server, very easy to do but we'd need to know what kind of server you're
on - windows or unix - to be able to point you in the right direction.
 
You could probably do this using a "custom confirmation page" and possibly a
bit of scripting, but I'm afraid it would be awkward.

I'm not aware of any third-party packages that do this, but then I've never
looked. This is simple enough to program thaT I would certainly build (using
ASP.NET) rather than buy.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
If you host supports a Access DB you can run your poll like a quiz
For an example See http://www.asp101.com/samples/quiz.asp

--




| Thanks, Jon:
|
| I am on Windows server.
|
| Ann
|
| | > Hi Ann,
| >
| > It can't be done using javascript - you need some way to store the ratings
| > and javascript can't store any kind of data. It needs to be done on the
| > server, very easy to do but we'd need to know what kind of server you're
| > on - windows or unix - to be able to point you in the right direction.
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
| > | >>I am considering adding a "Rate this article" component in my web site
| >>where readers could, well, rate an article using Radio Buttons on a scale
| >>of 1 to 5. (Many web sites have this).
| >>
| >> Could some of you guide me in the right direction as to how to do it?
| >> Looking at the source code of such web pages indicates it's done using
| >> javascript but I am not sure.
| >>
| >> Any help would be greatly appreciated. Thanks.
| >>
| >> Ann
| >>
| >
| >
|
|
 
Back
Top