|
OK. The easy bit is opening a new window. Here is a simple html file that illustrates: <html> <head> <title>Open Window</title> <script type="text/javascript"> var myWindow; function openCenteredWindow(url) { var width = 400; var height = 300; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top; myWindow = window.open(url, "subWind", windowFeatures); } </script> </head> <body> <h1>Open a New Window</h1> <form> <input type="button" value="Create New Window" onclick="openCenteredWindow('http://www.google.com');" /> </form> </body> </html> The difficult bit is how you would get webfacing to generate this. I'm afraid I know nothing about webfacing, so I can't help you much further. We are using the technique to generate spool files, convert them to PDF's then send the URL of the PDF back to the user's browser, which then opens the document. We are not using webfacing, but a Java Web application. Sorry I can't give you a complete answer. Regards, Chris. -----Original Message----- From: Sent: None Subject: ie is the standard here at work...and of course webfacing wont work on any other type of browser anyway, so i'm kinda stuck using ie regardless... if someone could point me in the right direction for Chris' javascript idea, I'll give that a shot... Shane Cessna iSeries Programmer iSeries WAS Administrator North American Lighting, Inc. (618) 662-4483 x2776 shane_cessna@xxxxxxx -- A program is never finished until the programmer dies. "Price, Chris" <Chris.Price@xxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 07/26/2005 11:55 AM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> cc Subject RE: Antwort: RE: connecting to PC with IP Address... If the files are in a folder in the IFS, then surely all you need to do is setup the HTTP server to allow access to that folder. Then you can open the folder from your webfaced app with a simple bit of javascript. Of course that would mean Internet Explorer rather than Windows Explorer, but is it close enough? Regards, Chris. -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Shane_Cessna@xxxxxxx Sent: 26 July 2005 17:34 To: Java Programming on and around the iSeries / AS400 Subject: Re: Antwort: RE: connecting to PC with IP Address...
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.