Rien ne cloche, dès que je change la lib à 1.3.2 mes trucs de succès fonctionne très bien? Comment vient? Pas même l'alerte avec le test apparaît ..jQuery: succès en cours d'exécution en 1.3.2 mais pas en 1.4.2
Voici le code ce qui se passe sur:
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);
}
});
}
Comment puis-je faire pour travailler avec la bibliothèque jquery 1.4.2?
Qu'est ce que 'fixed'? – SLaks
En quoi est-ce différent de votre précédente question? http://stackoverflow.com/questions/3639317/jquery-whats-up-with-the-success – user113716
fixé est un var fixé = 1; Si l'image a une taille fixe .. – Karem