Skip to content Skip to sidebar Skip to footer

Create A Window That Always Remains On

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 i

Solution 1:

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(); 
    });
});

Solution 2:

What about making a div positioned on top of the page instead of a browser window? Popup windows are usually prevented as default by browsers. One way to achieve this would be using a javascript plugin like this one: https://github.com/ajayhada/SimpleDialog/wiki, or maybe Jquery UI Dialog, see http://jqueryui.com/dialog/

Post a Comment for "Create A Window That Always Remains On"