I made a rating system. working ok but it's forms related.
something like if the member voted appear a reset rating button else a select form.
I have the tables moviesvotes with id of the member and movie id and vote as fields. and the table movies with id of the movie, number of votes and rating. I used the form values to recalculate the rating and n_votes everytime a vote was added or reseted the score.
can anyone help me convert this to some ajax rate system?
I'm guessing you did the rating system in PHP? If so you just need a simple JavaScript portion to execute the PHP and retrieve the new values. Do you know AJAX at all?
yes I made it in php. I'm a total noob at AJAX. just want to know if someone might give me some direction the sql queries and php logic I'll make it. wanted to show 10 stars(3 stars images, one empty, the one that will be show in the rating and the one show when someone hover to vote) well something to show for example the rating and if someone voted a reset button, else let vote hovering the stars number. Well this might be a little hard to do(I'm trying to addapt a code I found on the net but no luck till now). if this is too hard to make then just the version on php (a select if the user didn't voted or reset button) but in ajax.a question: it's possible to send values using ajax when the ajax is inside a <form> tag? thanks for the reply
well the problem was solved, thanks
Last edited by Perro88; 02-14-2008 at 07:18 PM.
what do you mean by this? Do you mean there is a link, or button or something inside <form> tags that you want to trigger an ajax event? Whatever you mean, any event that happens on the browser that you can detect using HTML events or JavaScript...can trigger an ajax call.
Visit My Google Group Here: Web Development Innovation
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks