Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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 July 19th, 2005, 11:31 AM
Authorized User
 
Join Date: Dec 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default New Window/Pop Up Minimizes

We have several pages that use a javascript function to open a new web presentation created from MS PowerPoint. The new window has all toolbars and title bars removed. This works fine on most computers but a few in our company are having trouble with it. When the click the button to launch the presentation, the window immediately minimizes.

Here is the function we are using:
function chgpage(){
popupWin = window.open("Confid.htm",null, "fullscreen=yes,status=no,toolbar=no,menubar=n o");
}

And the button code is
<input type = button value="Click here to start" onclick="chgpage();MM_goToURL('parent','http://home/');return document.MM_returnValue">

Thanks for your help.
 
Old July 20th, 2005, 02:03 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I'm surprised it doesn't happen to everyone as you seem to navigate the main page to a new location and it's probably grabbing the focus. Perhaps try something like:
Code:
function chgpage()
{
  popupWin = window.open ("Confid.htm",null, "fullscreen=yes,status=no,toolbar=no,menubar=no");
return popupWin;
}

function showSlides()
{
  var oWin = chgpage();
  MM_goToURL('parent','http://home/');
  oWin.focus();
  return document.MM_returnValue;
}
and
Code:
<input type = button value="Click here to start" onclick="return showSlides();">

--

Joe (Microsoft MVP - XML)
 
Old July 20th, 2005, 09:03 AM
Authorized User
 
Join Date: Dec 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had thought of that too, so I removed all code the redirects the page. This solution did not fix the problem.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Window refresh and window pop up in Java Script Aleksandra Javascript How-To 2 March 2nd, 2007 06:47 PM
Mdi child window minimizes vsramiya Pro VB 6 2 October 28th, 2005 07:32 AM
pop up window sankar VB How-To 0 July 29th, 2003 01:29 AM





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