[eluser]m_ologin[/eluser]
Well, the only problem I see with it is having to use eval()... But my data should be sanitized so I shouldn't worry too much about it.
This is what it ends up looking like:
[code]
var myAjax = new Ajax.Request('../request/generic_info/'+idQuizz,
{
method: 'post',
onComplete: function(xhr){
if (xhr.status == 200){
// Todo : create js object and pass this to constructor instead?
eval("info=" + xhr.responseText);
$('lblDateCreated').inner HTML = info.date_created;
$('lblDateModified').inner HTML = info.date_modified;
[...]
} else { ... }
}
}[code]