PHP Classes

youtube rollover ratings

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  youtube rollover ratings  >  (Un) Subscribe thread alerts  
Subject:youtube rollover ratings
Summary:i want to incorporate the rollover rating stars from youtube
Messages:2
Author:Shumit Rehman
Date:2008-07-15 21:56:00
Update:2008-07-15 23:04:14
 

  1. youtube rollover ratings   Reply   Report abuse  
Picture of Shumit Rehman Shumit Rehman - 2008-07-15 21:56:00
In a word - is the rollover rating stars possible in forms.

if not do i need to create a new plug -in and does anyone out there know how to do it?

thanks,Shumit

  2. Re: youtube rollover ratings   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-07-15 23:04:14 - In reply to message 1 from Shumit Rehman
I am not sure how you want to work, but if you want to keep track of the star that the user clicked to rate before the form is submittted, what you can do is to create a plug-in that generates all the necessary HTML and Javascript to add to the form output and handles the clicks on the stars.

The start element onclick event should be set in such way that it stores the value of the clicked star in an hidden form field added by the plug-in.

So when the form is submitted the hidden field carries the value of the clicked star. You can use that value to return to the application when it calls the GetInputValue function.