Hi! I'm using this script to add a comment and to load the server response:
$r=" $('#somestuff').hide();
$('.button').click(function() {
// validate and process form
// first hide any error messages
$('#somestuff').fadeIn(5000);
});
$('#subm').click(function() {
// validate and process form
// first hide any error messages
$('.error').hide();
var email = $('input#email').val();
var id = $('input#id').val();
if (email === '') {
$('input#email').focus();
return false;
}
var phone = $('textarea#body').val();
if (phone === '') {
$('input#body').focus();
return false;
}
var dataString = '&email=' + email + '&body=' + phone + '&id=' + id;
//alert (dataString);return false;
$.ajax({
type: 'POST',
url: '/helpdesk/idejas/ratingupdate/',
data: dataString,
success: function(html) {
$('#somestuff').html('<div id=\"message\" class=\"success large\"></div>');
$('#message').html('Paldies par ieteikumu!').hide()
.fadeIn(1500);
$('#somestuff').hide('slow');
$('#iddiv').show('slow');
$('.comments').append(html);
$('.comments li:last').fadeIn(1500);
}
});
return false;
});
"
;
Everything works fine in FF, Chrome, IE 7,8, but IE 6 breaks. It displays these chars: ? and I have no Idea how to fix this. This is happening sitewide. What could be the problem? I ran it through JSLint, and fixed all the bugs.