• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

focus not coming for window

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends,
I am developing an application in which an applet is loaded on a webpage and has a button on it.on click of the button the applet comes as a window. and the previous location is loaded with "mainDataFrame.php".The code is as follows



top.MainDataFrame.location.href="mainDataFrame.php";
var width = 900;
var height = 450;
var wleft = (screen.width - width) / 2;
var wheight = (screen.height - height) /2;
top.almWin = top.SectorFrame.window.open(top.contextId+"-STA-ALM-MON.html?CR=true&MJ=true&MN=true&WA=true&RefreshDuration=600","almWin","width="+width+",height="+height+","+"left="+wleft+",top="+wheight+","+"location=no menubar=no"+"status=no,toolbar=no,scrollbars=no,resizable=yes");
top.isAlarmMonRunning =0;
top.almPoppedUp = 1;
almWin.focus();
top.almWin.moveTo(wleft,wheight);



The issue is eventhough i am calling " almWin.focus();
" the focis is not coming to the openend window. I think the focus is going to "top.MainDataFrame.location.href="mainDataFrame.php";
" because if i conmment "top.MainDataFrame.location.href="mainDataFrame.php";
" it is working fine ie the window gets focus.

 
Don't MAKE me come back there with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic