Nothing is wrong, as soon as i change the lib to 1.3.2 my on success stuff works just fine? How comes? Not even the alert with TEST appears..
Here's the code this is happening on:
function crop() {
$.ajax({
type: "POST",
dataType: 'json',
url:"functions.php?action=crop",
data:
{
x: $('#x').val(),y: $('#y').val(),w: $('#w').val(),
h: $('#h').val(),fname:$('#fname').val(),fixed:fixed,
sizew:sizew,sizeh:sizeh},
success: function(response)
{
alert('TEST');
if(!fixed) // Missing { }
{
$("#showPhoto").css({overflow:"auto"}); // Missing ;
}
$("#showPhoto").html(
$(document.createElement("img")).attr(
"src",response.filename)).show();
$("#showPhoto").after("There you go...").show();
$("#image").slideUp();
},
error:function(response) {
console.log('error: ', response);
}
});
}
How can i make it to work with jquery 1.4.2 library?