AJAX/jQuery help needed
•
29 Dec 2010, 18:12
•
Journals
a person with ajax/jQuery knowledge, if you have it and have a bit of time leave msg here i'll pm u.
E: OK so the problem is following:
i've a page with images, every image has on the right a box "thumbs up" and when someone will click on it the amount of points will change in database for this image. Evrything works good but i want to add some eye candy because now when i click on the button my browser goes to "u.php" where is the MYSQL ADD script and then back to index by header(Location blabla) which results in a single page reload. I want to load this function in index.php using ajax or jquery without redirecting to u.php but i've no idea how since i can't find in inet how to do it and my jquery/ajax knowledge is about zerooooo. :d
atm i've:
u.php
and in index.php
E: OK so the problem is following:
i've a page with images, every image has on the right a box "thumbs up" and when someone will click on it the amount of points will change in database for this image. Evrything works good but i want to add some eye candy because now when i click on the button my browser goes to "u.php" where is the MYSQL ADD script and then back to index by header(Location blabla) which results in a single page reload. I want to load this function in index.php using ajax or jquery without redirecting to u.php but i've no idea how since i can't find in inet how to do it and my jquery/ajax knowledge is about zerooooo. :d
atm i've:
u.php
and in index.php
its a Football club in the netherlands
":D"
And he is very dangerous.
alakbar
http://w3schools.com/jquery/jquery_ajax.asp
or:
http://www.w3schools.com/XML/xml_http.asp
and you should consider to filter your inputs :-D
MET ZN KANKER MATJE
Btw, sanitize all your data before passing it to your query. Also make sure users can't vote twice.
E: btw. i think you didn't read my post carefully. I wrote i want to put the u.php function to index.php and using jquery or ajax induce it in this index.php without reloading the page :P