Article View: borland.public.jbuilder.java.language
Article #16999Re: HTML output - probably easy
From: Arun
Date: Thu, 24 Dec 1998 00:00
Date: Thu, 24 Dec 1998 00:00
32 lines
1851 bytes
1851 bytes
In 2. Can you elaborate on what you mean by CGI URL? I use showDocument with a URL created from the applet to display the HTML using javascript. This works in Netscape 4.x but IE4 throws an exception: javascript unknown protocol Arun William Yu wrote: > "Daniel R. J. Lind" wrote: > > > > I want to use a Java applet to dynamically create HTML in another frame in a > > standard browser. Is this easy to do? How do you do it? > > There is no easy way to do this. Possible options: > > 1. Run servlets or CGI scripts on your web server. Have the applet > communicator back to the web server to transmit the HTML output there. > Then use showDocument with a CGI URL that will tell the server to > display the stored HTML output. > > 2. Open a socket connection on port 80 to the browser. Have the > browser show in the target frame the URL http://localhost. Then transmit > the HTML output to the browser with all the appropriate HTTP tags. (Not > sure if this is possible.) > > 3. Have an applet in the target frame with a HTML parser component. > Use some form of interapplet communication (static class variables, > infobus, etc.) to transmit the HTML content to the target applet. > > I recommend #3.
Technical Details
Message-ID:
<36826F4B.C8A0BA72@earthlink.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<75k8fv$6fa19@forums.borland.com> <367FF7D3.934EB68D@Bigfoot.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f73b44b7e3d718ec X-Google-Attributes: gidf74b3,public From: Arun <nagaraj@earthlink.net> Subject: Re: HTML output - probably easy Date: 1998/12/24 Message-ID: <36826F4B.C8A0BA72@earthlink.net> X-Deja-AN: 425541797 Content-Transfer-Encoding: 7bit References: <75k8fv$6fa19@forums.borland.com> <367FF7D3.934EB68D@Bigfoot.com> To: William Yu <William_Yu@Bigfoot.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language