Hello,
i working with dialog in tabs. The tabs are loaded with follow function:
function getContent(url) {
return $.ajax({
type: "GET",
url: url,
cache: false,
async: false
}).responseText
}
function addTab(url, title, icon) {
if ($('#systabs').tabs('exists', title)) {
$('#systabs').tabs('select', title)
} else {
index++;
$('#systabs').tabs('add', {
title: title,
content: getContent("/window.php" + url),
iconCls: icon,
closable: true,
border: 0,
fit: true,
tools: [{
iconCls: 'icon-mini-refresh',
handler: function () {
updatecontent(icon);
}
}],
})
}
}
so, i had a freaky problem with open dialogs inside the tabs. When i open a dialog, i fill the form values with json data:
....
onOpen:function(){
$.post("/jclient.php",{methode:'getHandle',handle:$('#handle').val()},function(result){
$('#firstname').val(result.FIRSTNAME);
$('#firstname').attr("disabled", true);
$('#lastname').val(result.NAME);
$('#lastname').attr("disabled", true);
...
},'json');
},
...
i open the dialog in the new open tab, its works, an the values are filled correctly. But when i close the tab, open the this tab again and then open the dialog the values are empty?
The data is loaded correct via json client but its not filled. I search for this failure the last 2 weeks but i dont find it;-)
Maybe somebody here has an idea what's the failure.
Thanks,
Baxter