From owner-freebsd-java Sat Jun 27 07:41:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA18029 for freebsd-java-outgoing; Sat, 27 Jun 1998 07:41:19 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from sussie.datadesign.se (ns.datadesign.se [194.23.109.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA18009 for ; Sat, 27 Jun 1998 07:41:11 -0700 (PDT) (envelope-from kaj@interbizz.se) Received: from localhost (sussie.datadesign.se [194.23.109.130]) by sussie.datadesign.se (8.8.5/8.8.7) with ESMTP id QAA07846; Sat, 27 Jun 1998 16:41:08 +0200 (MET DST) To: java@FreeBSD.ORG Cc: kaj@interbizz.se Subject: Q: AppletContext.showDocument(URL, String) From: Rasmus Kaj X-Mailer: Mew version 1.92.4 on XEmacs 20.4 (Emerald) X-URL: http://www.e.kth.se/~kaj/en.shtml X-Phone: +46 (0)8 - 692 35 09 / +46 (0)70 640 49 14 X-Attribution: Kaj X-Face: M9cR~WYav<"fu%MaslX0`43PAYY?uIsM8[#E(0\Xuy9rj>4gE\h3jm.7DD?]R8*^7T\o&vT U@[53Dwkuup4[0@gw#~kyu>`unH?kVj9CJa02(h>Ki\+i=%rn%sDf^KC.!?IHkKjMAbkd\jgmphp^' d|Q;OeXEAhq?ybGqOs1CHb6TJT42'C`Krnk61//AOfXtNjj/t'`5>Vw0QX!dKfOL$.f+S"LIuwR<;I Z0Qnnx(F^F]o@*V%TUtEV'1Z[TkOl^FFV9Z~A[b19%}uP*,huCU Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19980627164107D.kaj@interbizz.se> Date: Sat, 27 Jun 1998 16:41:07 +0200 X-Dispatcher: imput version 971024 Lines: 31 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! Is there a way to tell applet viewer what to do with calls to AppletContext.showDocument in the applet viewer? In a browser it's straightforward, but in an applet viewer we need to tell a browser to fetch and show the URL (e.g. via Netscape 'remote-control'). In case there is a way, this is a query for how-do-I-use-it, otherwise it's a request to add such a feature ... The documentation for jdk-1.1.6 seems to say that such a feature is at least intended: -- snip -- public abstract void showDocument(URL url, String target) Requests that the browser or applet viewer show the Web page indicated by the url argument. The target argument indicates in which HTML frame the document is to be displayed. The target argument is interpreted as follows: -- snip -- This sounds like a problem that need to be solved 'natively' (i.e. not in the part of the API that is written in java) ... // Rasmus -- kaj@cityonline.se --------------- Rasmus Kaj - http://www.e.kth.se/~kaj/ \ CityOnLine IB Production AB - http://www.CityOnLine.se/ \----- If God had intended Man to Smoke, He would have set him on Fire To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sat Jun 27 12:00:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA14408 for freebsd-java-outgoing; Sat, 27 Jun 1998 12:00:34 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from oznet14.ozemail.com.au (oznet14.ozemail.com.au [203.2.192.120]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA14399 for ; Sat, 27 Jun 1998 12:00:29 -0700 (PDT) (envelope-from joe.shevland@horizonti.com) Received: from horizonti.com (dialin108.hbt.tassie.net.au [203.57.210.108]) by oznet14.ozemail.com.au (8.8.4/8.6.12) with ESMTP id FAA21502; Sun, 28 Jun 1998 05:00:04 +1000 (EST) Message-ID: <35953F3B.7A004A8F@horizonti.com> Date: Sun, 28 Jun 1998 04:51:39 +1000 From: Joe Shevland X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: Rasmus Kaj CC: java@FreeBSD.ORG Subject: Re: Q: AppletContext.showDocument(URL, String) References: <19980627164107D.kaj@interbizz.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Rasmus Kaj wrote: > Hello! > > Is there a way to tell applet viewer what to do with calls to > AppletContext.showDocument in the applet viewer? In a browser it's > straightforward, but in an applet viewer we need to tell a browser to > fetch and show the URL (e.g. via Netscape 'remote-control'). > > In case there is a way, this is a query for how-do-I-use-it, otherwise > it's a request to add such a feature ... The documentation for > jdk-1.1.6 seems to say that such a feature is at least intended: > > -- snip -- > public abstract void showDocument(URL url, > String target) > > Requests that the browser or applet viewer show the Web page > indicated by the url argument. The target argument indicates in > which HTML frame the document is to be displayed. The target > argument is interpreted as follows: > -- snip -- > > This sounds like a problem that need to be solved 'natively' (i.e. not > in the part of the API that is written in java) ... > > // Rasmus The showDocument method doesn't make sense in the appletviewer context; the appletviewer is only for running the first tag within a given HTML page (i.e. doesn't display anything else). The reference to HTML frames above means you can specify the new document to appear in a new window, the current window and also special contexts like #top etc... As to the remote control thing, did you want to control Netscape from the appletviewer? Sounds odd, but I guess you could implement a shared library under FBSD and use the Java Native Interface to call a trivial piece of C code that fires up Netscape. Hope this was relevant. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message