I have put the line in question in bold. I have had problems before with defining functions and calling them. Why am I getting this error? I just want to call the newStarRating function at this point with the given parameters. Any help would be appreciated!

Found two of the problems. First of all one of my encodeURIComponent functions is misspelled encoreURIComponent, and I am missing the concatenation operator on that last encodeURIComponent.There still seems to be some other issues so I'm digging in deeper for that. (JSLint / JSHint have been a help and I will utilize them in the future.)

I can't seem to get the event for 'onclick' to initiate the AJAX request. Does the element have to be a link or something in order for an 'onclick' to be triggered or something?