Focal Point
[SOLVED] How to close a blank window opens with Maintain app

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3571012103

October 01, 2008, 04:10 PM
Jeeva
[SOLVED] How to close a blank window opens with Maintain app
We have HTML & JavaScript to launch Maintain application. I got some help from one of the posts from Francis in this forum to remove toolbar from the browser window, but now a blank window opens up with the application. Does anybody know the code to close blank window without getting browser warning?

Thanks,
Jeeva

This message has been edited. Last edited by: Kerry,


Production WebFOCUS 7.6.2, Platform Win2003, Database Oracle 10g
October 02, 2008, 05:02 AM
GamP
Jeeva,

It might help us if you could specify what happens just a bit more clearly.
Do you mean that your maintain opens in a new window, but that there is alo a second window opened? Or do you mean to say that after the maintain closes, the window does not close but is emptied?

If the first, please post your html & javascript code.
If the second, please search this forum for 'maintain close ie' and you'll find the appropriate information.

Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
October 03, 2008, 02:14 PM
Jeeva
Thank you GamP. It is the first one, Maintain app opens in a new window but also the first window(emptied) remains open. HTML & JS code as below.


<script language=JavaScript>
randomNum = Math.random();
sURL = "/ibi_apps/WFServlet?IBIF_cmd=MNTCON+EX+startbookorder&IBIS_connect=on&IBIAPP_app=maintain&IBIC_server=EDASERVE&num=" + randomNum;
vFeatures =
"menubar=yes,toolbar=no,status=yes,resizable=yes,scrollbars=yes" +
"left=0, top=0, width=" + screen.availWidth + ", height=" + screen.availHeight;
vTarget = window.open(sURL, "vTarget", vFeatures);
vTarget.focus();





Production WebFOCUS 7.6.2, Platform Win2003, Database Oracle 10g
October 03, 2008, 02:40 PM
Dave Ayers
Jeeva,

It looks like you are opening the second, blank, window with your JS code

vTarget = window.open(sURL, "vTarget", vFeatures);

I think you need to remove it from your URL and add the vFeatures code to the onload event code of your Maintain, to control the menubar.

Do a search for 'Maintain onload' to find how to do that.


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
October 06, 2008, 05:24 PM
brjohnson
Is it possible to control window features when a window is already open? As far as I can tell, if your code didn't open the window then you can't control the window features. Javascript can control the features of windows it opens, like Jeeva has shown above, but not the features of the window that is containing the code.

-Bryan


Bryan Johnson
WebFOCUS 7.7.03
Maintain
Win 7
Excel, PDF, HTML