This is the jQuery, both the game_id and the $(this).val() are integers
/* AJAX call: save to DB input name=#game_id# value=#game_rating */
$.post("game_rating_submit.cfm", {
id: game_id,
rating: $(this).val()
},
function(data) {
alert('data: ' + data);
});
This is the coldfusion part that's failing:
<cfif NOT IsNumeric("form.rating")>
<cfset variables.error = 'Invalid rating value #form.rating#.' >
</cfif>
<cfoutput>#variables.error#</cfoutput>
For some reason form.rating is not numeric?