Closed Thread
Results 1 to 5 of 5

Thread: Need some AJAX help

  1. #1
    Perro88 is offline Newbie
    Join Date
    Dec 2007
    Posts
    11
    Rep Power
    0

    Need some AJAX help

    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?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    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?

  4. #3
    Perro88 is offline Newbie
    Join Date
    Dec 2007
    Posts
    11
    Rep Power
    0
    Quote Originally Posted by Lop View Post
    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

  5. #4
    Perro88 is offline Newbie
    Join Date
    Dec 2007
    Posts
    11
    Rep Power
    0
    well the problem was solved, thanks
    Last edited by Perro88; 02-14-2008 at 07:18 PM.

  6. #5
    fahlyn's Avatar
    fahlyn is offline Learning Programmer
    Join Date
    Nov 2007
    Posts
    35
    Rep Power
    0
    Quote Originally Posted by Perro88 View Post
    in ajax.a question: it's possible to send values using ajax when the ajax is inside a <form> tag? thanks for the reply
    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP Vs AJAX
    By Megrisoft in forum AJAX
    Replies: 35
    Last Post: 10-04-2009, 02:02 AM
  2. SQL and AJAX
    By Jubal in forum PHP Development
    Replies: 23
    Last Post: 02-02-2009, 01:45 AM
  3. Ajax Pop-Up
    By Divya in forum AJAX
    Replies: 2
    Last Post: 01-07-2009, 08:06 PM
  4. .Net and Ajax
    By smithcarvo in forum ASP, ASP.NET and Coldfusion
    Replies: 2
    Last Post: 08-29-2008, 02:39 AM
  5. Will Ajax still be Ajax?
    By jessje in forum AJAX
    Replies: 3
    Last Post: 08-08-2008, 08:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts