创建一个始终保持打开状态的窗口 [英] Create a window that always remains on

查看:43
本文介绍了创建一个始终保持打开状态的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<块引用>

可能的重复:
弹出窗口总是在顶部

在我的 Web 应用程序中,有一个按钮可以打开分数图表.图表作为新窗口打开,以便用户可以将其放在主窗口旁边:

javascript:window.open('chart',..., 'left=50,top=50,toolbar=no,location=no,status=no,directories=no,dependent=yes,menubar=否,宽度=400,高度=600,滚动条=是')

然而,当用户将他的主窗口全屏显示,然后打开得分图表,然后点击主窗口时——得分图表消失"在主窗口下.

如何让分数图表始终保持在顶部(当然,直到用户关闭它)?

也欢迎其他实现相同目标的想法...

解决方案

您可以使用 jquery 对话框将窗口作为主窗口中的窗口"打开,这样主窗口和分数图表是相同的..

var $div = $("

");$("#OpenScoreChartButton").click(function() {$div.load('chart.aspx?...', function() {$div.dialog();});});

Possible Duplicate:
Popup window always on top

In my web application, there is a button that opens a score chart. The chart is opened as a new window, so that the user can put it adjacent to the main window:

javascript:window.open('chart',..., 'left=50,top=50,toolbar=no,location=no,status=no,directories=no,dependent=yes,menubar=no, width=400,height=600,scrollbars=yes')

However, when the user makes his main window full-screen, and then opens the score chart, and then clicks the main window - the score chart "disappears" under the main window.

How can I make the score chart stay always at the top (until the user closes it, of course)?

Other ideas to achieve the same goal will also be welcome...

解决方案

You can use jquery dialog to open the window as a "window" inside your main window that way the main window and the score chart are the same..

var $div = $("<div/>");
$("#OpenScoreChartButton").click(function() {
    $div.load('chart.aspx?... ', function() {
       $div.dialog(); 
    });
});

这篇关于创建一个始终保持打开状态的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆