Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2003, 03:22 AM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default alerting popup windown in minimized form

i want to creat a popup which on completing the downloads (images or other mean completed and showin done in status bar) should prompt user by blinking in task bar like a msn message window blink on arrival of a new message.
i tried Modal window , focus , blur and other things but cud not achive what i want.i want window in minimized state only to alert by blinking that page completed.
any idea how to do it.

regards
sirsyme

love for all
 
Old August 16th, 2003, 12:26 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default

try the onLoad trigger of the body tag. this triggers once the page is completed loading

----------------------------
Aeon of Darkness MUD - Free Online Roleplaying Game
http://aeonofdarkness.com
 
Old January 31st, 2005, 08:57 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sirsyme
 i want to creat a popup which on completing the downloads (images or other mean completed and showin done in status bar) should prompt user by blinking in task bar like a msn message window blink on arrival of a new message.
i tried Modal window , focus , blur and other things but cud not achive what i want.i want window in minimized state only to alert by blinking that page completed.
any idea how to do it.

regards
sirsyme

love for all
Hi, I have the same problem as you did and I still didn´t found any solution. Did you endly found how to do it?

regards
julius

 
Old February 1st, 2005, 05:47 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hiii
sirsyme & juliuscaesar

try this approach!!

Hope below code help you :)

*********test.html************
<script>

function popupOpen(){
width=400
height=10
document.getElementById("mywin").style.display=''
document.getElementById("mywin").style.width=width
document.getElementById("mywin").style.height=heig ht
document.getElementById("mywin").style.left=230
document.getElementById("mywin").style.top=400
document.getElementById("myframe").src="vinod.html ";
setTimeout("moveit()",3000);
}
function moveit()
{
document.getElementById("mywin").style.left=screen .width-20
}
function popupClose(){
document.getElementById("mywin").style.display="no ne"
}

</script>

<input type=button onclick="popupOpen()" value="chk">
<div id="mywin" style="position:absolute;background-color:navy;cursor:hand;left:0;top:0;display:none">
<div align="right"><span style="color:white" onClick="popupClose()">X</span></div>
<iframe id="myframe" src="" width=100% height=50%></iframe>
</div>

and here is "vinod.html" page

************vinod.html*********
<script>
function gotopage()
{
alert("here is ur redirect page")
}
</script><body leftmargin=0 topmargin=0 bgcolor="navy">

<table width=100%><tr><td><input type=button value="NewMailAlert" style="{background-color:white}" onclick="gotopage()"></td></tr></table>
</body>

Cheers :)

vinod
 
Old February 4th, 2005, 06:04 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi vinod,

I tried your code but I didnt found it fully usefull. I think that all the pop-up window related theme is not so important. What we want to know is how to make a window blink in the task bar without using the "focus()" method.

Thanks for your help,

juliuscaesar

Quote:
quote:Originally posted by vinod_yadav1919
 Hiii
sirsyme & juliuscaesar

try this approach!!

Hope below code help you :)

*********test.html************
<script>

function popupOpen(){
width=400
height=10
document.getElementById("mywin").style.display=''
document.getElementById("mywin").style.width=width
document.getElementById("mywin").style.height=heig ht
document.getElementById("mywin").style.left=230
document.getElementById("mywin").style.top=400
document.getElementById("myframe").src="vinod.html ";
setTimeout("moveit()",3000);
}
function moveit()
{
document.getElementById("mywin").style.left=screen .width-20
}
function popupClose(){
document.getElementById("mywin").style.display="no ne"
}

</script>

<input type=button onclick="popupOpen()" value="chk">
<div id="mywin" style="position:absolute;background-color:navy;cursor:hand;left:0;top:0;display:none">
<div align="right"><span style="color:white" onClick="popupClose()">X</span></div>
<iframe id="myframe" src="" width=100% height=50%></iframe>
</div>

and here is "vinod.html" page

************vinod.html*********
<script>
function gotopage()
{
alert("here is ur redirect page")
}
</script><body leftmargin=0 topmargin=0 bgcolor="navy">

<table width=100%><tr><td><input type=button value="NewMailAlert" style="{background-color:white}" onclick="gotopage()"></td></tr></table>
</body>

Cheers :)

vinod
[u]</u><s></s><div align="left"></div id="left"><div align="left"></div id="left"><center></center><center></center>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Popup window automatically minimized on click! elisabeth Javascript How-To 19 January 29th, 2017 02:43 AM
change form color when minimized maricar C# 3 September 10th, 2008 07:34 PM
New created popup window automatically minimized! elisabeth Javascript How-To 1 September 21st, 2004 07:20 AM
Passing Value from main form to Popup Form smartgir Access VBA 0 February 26th, 2004 06:26 PM
IIS 5 Monitoring and Alerting Dan34 Classic ASP Basics 1 December 17th, 2003 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.