This JS is giving me some problems. Specifically FF3.5 is saying there is Error: missing ; before statement
and its pointing at the 'comsn=' + comsn
section. I know enough js to get myself into trouble, but specifics, im not there yet. Any ideas?
<script type="text/javascript" >
$(function () {
$(".submit").click(function () {
var comsn = $("#comsn").val();
var comrn = $("#comrn").val();
var compic = $("#compic").val();
var comment = $("#comment").val();
var eventid = $("#eventid").val();
var comuserid = $("#comuserid").val();
var owner = $("#ownerid").val();
var dataString = 'comsn=' + comsn '&comrn=' + comrn '&compic=' + compic '&comment=' + comment '&eventid=' + eventid '&comuserid=' + comuserid '&owner=' + owner;
if (comment == '') {
alert('Must Type Comment to Post Comment');
}else{
$("#flash").show();
$("#flash").fadeIn(400).html('<img src="assets/uploading.gif" />Loading Comment...');
$.ajax({
type: "POST",
url: "comments_post.php",
data: dataString,
cache: false,
success: function (html) {
$("ol#update").prepend(html);
$("ol#update li:last").fadeIn("slow");
$("#flash").hide();
}
});
}return false;
});
});
</script>