Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to have a popUp stating some orders done by users even when my web application(running in IE) is minimized. Has anyone achieved it ever?

It works with simple HTML but not with my web application build on .NET 3.5 framework.

Any other workaround for this functionality is also welcomed.

Solution for IE 6, 7, 8 or 9 is required.

HTML code that works is:

XML
<HTML>
<HEAD>
<TITLE>Popup Example</TITLE>
<SCRIPT LANGUAGE="JScript">
function timeMsg()
{
    var t=setTimeout("ButtonClick()",5000);
}

var oPopup = window.createPopup();

function ButtonClick()
{
    var oPopBody = oPopup.document.body;
    var myHeight = (window.screen.availHeight - 125);
    var myWidth = (window.screen.availWidth - 350);

    oPopBody.style.backgroundColor = "#CCC";
    oPopBody.style.border = "solid black 1px";
    oPopBody.innerHTML = "Click outside <B>popup</B> to close.";
    oPopup.show(myWidth, myHeight, 300, 75);
}
</SCRIPT>
</HEAD>
<BODY>
<BUTTON onclick="timeMsg()">Hi</BUTTON>
</BODY>
</HTML>
Posted

use Popup extender from ajax controller.
 
Share this answer
 
Comments
AvinashGolechha 30-Aug-13 8:05am    
I want the popup even when my browser is minimized and it should not become an active window.
I was using this code for popup window on Button click event.
<div class="login-home">
<div class="signin">
<ul>
<li id="button"><a href="#">
<img src="img/login-home.png" border="0" /></a></li>
</ul>
<div id="popupContact">
<a id="popupContactClose"></a>
<div class="form-wrap2">
<form id="Form1" runat="server">
<div class="label">
User Name</div>
<div class="input-wrap">
<asp:TextBox ID="UserNameTextBox" runat="server" class="input-user2" TabIndex="1"
MaxLength="15"></asp:TextBox></div>
<div class="label">
Password</div>
<asp:TextBox ID="PasswordTextBox" runat="server" class="input-password2" TabIndex="2"
TextMode="Password" MaxLength="15"></asp:TextBox>
<asp:Button ID="LoginButton" runat="server" TabIndex="3" Class="button3" OnClick="LoginButton_Click"
OnClientClick=" return validate()" />&nbsp;
</form>
</div>
</div>
<div id="backgroundPopup">
</div>
</div>
</div>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900