Thank you for your answer.
Here's the fonction I use.
function putImage(who){
if(lastZoneClic == 'format'){
var xhr_object = varAjax();
xhr_object.open("POST", "Redim_image.php", false);
xhr_object.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
xhr_object.send( "url=" + who + "&hauteur=" +
getId(lastZoneClic).offsetHeight + "&largeur=" +
getId(lastZoneClic).offsetWidth );
if (xhr_object.status!=200){
alert(xhr_object.responseText);
}else{
//getId(lastZoneClic).style.backgroundImage = 'url("' +
xhr_object.responseText + '")';
getId(lastZoneClic).style.backgroundColor = "red"; MARCHE
}
}
I don't use Jquery or PrototypeJS.
I have no problem with images, only with backgroundImage.
And I really don't know what to do.
Thanks for your help.
--------------------------------------------------
From: "Fabien Ménager" <
fabien....@gmail.com>
Sent: Friday, May 07, 2010 5:50 PM