Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 487
  • Last Modified:

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 :)
0
transitnetwork
Asked:
transitnetwork
  • 5
  • 4
1 Solution
 
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
 
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
leakim971PluritechnicianCommented:
0
 
transitnetworkAuthor Commented:
awesome
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now