This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Unexpected Token Error
#1

Hi,
Using Safari "Show Error Console", I get "SyntaxError: Unexpected token ',' (anonymous function)MC8683:1217"
pointing to this "data: {id: , rating: rating}," of the jquery ajax code

I am guessing it has something to do with my id being alphanumeric 
http://www.mynextpromo.ca/reviews/MC8683/

Any ideas?

Thanks
Reply
#2

Hi franck,

Can you try opening /includes/template/comments.php and replace this line:

Code:
data: {id: <?php echo $cmtx_page_id; ?>, rating: rating},

With this:

Code:
data: {id: '<?php echo $cmtx_page_id; ?>', rating: rating},

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
14-Jul-2018, 05:35 PM
Last Post by mariank
05-Jan-2014, 03:43 PM
Last Post by Steven
09-Jul-2012, 01:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)