I have a Fancybox which shows me some dialog and a button to click.
When i click this button i want to open another fancybox over the existing one.. or on another position on the screen, but i dont want to lose the already existing fancybox.
I want to fill both of them by an ajax request..
Is this possible?
Because what i tried resulted in losing the original fancybox..
I got this code:
$.fancybox.showActivity();
$.ajax({
type : "POST",
cache : false,
url : "../testservlet?select=1,
data : $(this).serializeArray(),
height : 600,
width : 800,
padding : 30,
showCloseButton : true,
success : function(data) {
$.fancybox(data);
}
});
$.fancybox.showActivity();
$.ajax({
type : "POST",
cache : false,
url : "test?select=2,
data : $(this).serializeArray(),
padding : 30,
showCloseButton : true,
success : function(data) {
$.fancybox(data);
}
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…