jQWidgets Forums
Forum Replies Created
-
Author
-
this works
thank you
ups, the code is not complete, what’s wrong?
how can i post code like your example?ok, i added an second window to your code
and then there i can interact with the content of the first window$(document).ready(function () {
$('#WindowName_1').jqxWindow({
autoOpen: false,
draggable: false,
resizable: false,
animationType: 'none',
isModal: true,
showCloseButton: false,
height: 400,
width: 400,
maxHeight: 810,
maxWidth: 1200,
theme: 'energyblue'
});$('#WindowName_2').jqxWindow({
autoOpen: false,
draggable: false,
resizable: false,
animationType: 'none',
isModal: true,
showCloseButton: false,
height: 200,
width: 200,
maxHeight: 810,
maxWidth: 1200,
theme: 'energyblue'
});$('#WindowName_1').jqxWindow('show');
$('#WindowName_2').jqxWindow('show');})
Title 1Title 2what i want are nested windows, so when i open the second window the first window should be disabled
i have tested another code, where i use $(‘#WindowName_1’).jqxWindow(‘disable’); in the second window to disable the first
but the behaviour is the same, i can interact with the first window, it is not completely disabledthe create-code:
$('#WindowName').jqxWindow({
autoOpen: false,
draggable: false,
resizable: false,
animationType: 'none',
isModal: true,
showCloseButton: false,
title: 'WindowTitle',
content: 'Loading...',
height: 400,
width: 400,
maxHeight: 810,
maxWidth: 1200,
theme: 'energyblue'
});
the code to open a window:
myurl='content.php?param=1';
changeContent(myurl, $('#WindowName'));
$('#WindowName').jqxWindow('show');
the changeContent-function:
function changeContent(url, window) {
window.jqxWindow('setContent', 'Loading...');
$.ajax({
dataType: 'html',
url: url,
success: function (data) {
//Parsing the data if needed
window.jqxWindow('setContent', data);
},
error: function () {
window.jqxWindow('setContent', 'Error');
}
});
}
the other windows have the same code to create and set the content
the interaction is not limited to form-elements, i can interact with the whole content
i forgot to write in my first posting that i load the content with setContent, can this be the problem?i have an similar problem
when i open the first window and then open the second window, this is not 100% modal
i can still interact with the form-content of the first window
i think this is a bug in jqxWindow
i dont want to hide the first window and re-show it after i close the second window
is there another solution? -
AuthorPosts