ajax voting buttons not working

I can't get these voting buttons to work for the life of me, the javascript just won't run and i can't figure out why

http://reviewsource.ca/reviews.php 

I have it working fine on my filecart.com site but it just won't run on this, i must be missing something, please let me know if you can find the problem

thanks :)
transitnetworkAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
leakim971Connect With a Mentor PluritechnicianCommented:
0
 
leakim971PluritechnicianCommented:
You have multiple javascript framework and use try to use the $ for jQuery.
Use jQuery instead

For example, replace :

$(".vote") by jQuery("vote")
0
 
leakim971PluritechnicianCommented:
sorry :

$(".vote") by jQuery(".vote")

I miss the dot in the new one
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
ShanksbenCommented:
Your code must be right:
$(".vote") and whatever follow after.
Try put your 'vote' class in double quotes in your HTML code and everything should work fine.
If it doesn't, try to remove scriptaculous and leave jQuery. The issue is that prototype (scriptaculous uses prototype) 'hooks' native elements properties and that may make others libraries not to function well.
I suggest to stick to one library and use it. It may help reduce code collision. Try jQuery as leakim971 suggests.
Firebug will greatly improve your javascript debugging options, download it in case you don't have it.

Kind Regards
0
 
transitnetworkAuthor Commented:
changing the $ to jQuery and removing scriptaculous did nothing to resolve the problem

This is so strange.
0
 
leakim971PluritechnicianCommented:
The previous error about the "vote" left.
You've new ones, for example it seems you don't have any submit_btn or reset_btn in your page...
Clipboard03.jpg
0
 
transitnetworkAuthor Commented:
My apologies i'm stripping out the code that's not needed, this is why you received an error regarding that other code
0
 
leakim971PluritechnicianCommented:
see difference between $(".vote") and jQuery(".vote")
Clipboard04.jpg
0
 
transitnetworkAuthor Commented:
okay so it was the scriptaculous conflicting, but how do I keep both?

replacing $(".vote") by jQuery(".vote") does not make it work
0
 
transitnetworkAuthor Commented:
awesome
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.