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 27 28 29 30 31 32 33 34 35 36 37
|
function getListClient()
{
dojo.xhrGet({
url :"edit-liste-client/idGroupClient/" + idGroupActif,
handleAs :"text",
timeout :5000,
load : function(response) {
if(dijit.byId("containerClient")){
var containerClient = dijit.byId("containerClient");
} else {
var containerClient = new dijit.layout.TabContainer({
id : "containerClient",
style: "height: 900px; width: 900px;"
},myDiv);
}
if (dijit.byId("ongletListage")) {
dijit.byId("ongletListage").attr("content", response);
} else {
var ongletListage = new dijit.layout.ContentPane({
id :"ongletListage",
title: 'nomGroup',
closable :true,
onClose: function(){
return confirm("Etes-vous certain de vouloir fermer cette onglet ?");
}
});
containerClient.addChild(ongletListage);
containerClient.startup();
dijit.byId("ongletListage").attr("content", response);
}
},
error : function(error) {
alert('Probleme requete ajax \n ' + error);
}
})
} |
Partager