1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| xhr.onreadystatechange = function()
{
//alert(xhr.status);
//alert(xhr.readyState);
if(xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0 ) )
{
resultat = xhr.responseText;
//alert(resultat);
var obj = $("#accordion");
obj.html(resultat);
obj.accordion("destroy").accordion(obj.data("accordionSettings"));
document.getElementById('bouton_validate').style.display = "block";
//permet de changer le titre du dialog à la volée (quand on change de patient)
//alimenter_variable_session();
//alert($('#txt_name').val());
var name = $('#txt_name').val();
var firstname = $('#txt_firstname').val();
var titre = name + ' ' + firstname;
alert(titre);
$('#examen').dialog('option', 'title', titre);
}
} |