[432] in java-interest

home help back first fref pref prev next nref lref last post

Re: Netscape and Hotjava documents

daemon@ATHENA.MIT.EDU (Daniel Ockeloen)
Wed Jun 21 16:58:37 1995

From: daniel@vpro.nl (Daniel Ockeloen)
To: java-interest@java.sun.com
Date: Wed, 21 Jun 1995 22:41:24 +0100 (MET DST)
In-Reply-To: <Pine.SOL.3.91.950621144239.468v-100000@iron> from "David Levine" at Jun 21, 95 02:46:14 pm

> 
> Here is a sample CGI script for browser recognition, provided by the 
> Webmaster at SMCC, and tailored by Dug Birdzell, Programmer at HuskyLabs:
> 
> Here's that code to recognize a browser, and an example that I have just 
> used. 
>  
[perl example zapped]

I _know_ im going to get flamed for this but on our server we do this like
this :

<IF OBJ-CONST-BROWSER=GHotjava>
Hotjava html part
<ELSE>
Normal part
</IF>

We made a second server (apart from the http server) that handles these
commands and _then_ gives them to the http deamon. Many (all?) people scream
that this is bad because its not part of html but we have 3200+ pages and
diff. people for programming and html so this kinds of 'programmable cgi' 
s needed so the writers can work with them. Its possible to use vars, id's, 
calc, sql databases etc etc .... again ones the pages leave our server they are
normal html 2.0, 3.0,netscape :) or java pages.
 
I know this doesn't help the person who had the qw to begin with so i have
a second way that is easy and uses java to solve the problem.

Make a small (10 lines ? java applet) that jumps to a url defined in the
URL of the app call. If you use a normal browser if will display the page
and ignore the <APP token. If it is a <APP browser it will load and start
the applet that jumps to the javatised page.
If you don't know how to do this email me and i will send you a example.

>  
> --> Dug <--
> 
> --Hope that helps,
> 
> David Levine, President HuskyLabs
> Netscape --> http://www.butterfly.net/motodave/index.html
> Hotjava --> http://www.butterfly.net/motodave/java.html
> 
> (note above: I haven't tried this at home)
> 
> On Wed, 21 Jun 1995, Rodolfo Pena ECSA wrote:
> 
> > I'm new at setting up homepages. Can you tell me how to tell if its a hotjava browser or Netscape browser that is requesting a document? Is there a need to have seperate documents? Or, one document which send out a .gif instead of an
> > applet? In other words, how do you create documents that are useful to both
> > Hotjava and Netscape users, while we wait for Netscape, et. al. to recognize
> > applets?
> -
> Note to Sun employees: this is an EXTERNAL mailing list!
> Info: send 'help' to hotjava-interest-request@java.sun.com

Daniel.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post