Article View: borland.public.jbuilder.java.language
Article #15999Re: Netscape java API
From: Dillan Fernando
Date: Wed, 14 Apr 1999 00:00
Date: Wed, 14 Apr 1999 00:00
71 lines
1892 bytes
1892 bytes
Hi!
Thanks !
This is exactly what I need
Kind Regards
Dillan Fernando
Omer Azhar Qureshi wrote in message <7ei1oe$1i311@forums.borland.com>...
>Dillan,
>herez some code that dose javascript method call from an applet i this is a
>duplicate of an answer that i gave in the applet-issues group
>
>[The Applet Class]
>import java.applet.*;
>import java.net.*;
>
>public class inJava extends Applet
>{
> public void init()
> {
> String msg = "We will jump to an HTML tag";
> try
> {
> getAppletContext().showDocument (new URL("javascript:doAlert(\"" +
>msg +"\")"));
> getAppletContext().showDocument (new
>URL("javascript:jumpTo(\"#JUMP\")"));
> }
> catch (MalformedURLException me) { }
> }
>}
>
>[The Html containing the javascript]
><HTML>
><HEAD>
></HEAD>
><BODY>
>
><SCRIPT>
>function doAlert(s){
> alert(s);
>}
>function jumpTo(tag) {
> self.location=tag;
>}
></SCRIPT>
>
><APPLET CODE="inJava.class"
> NAME="myApplet" MAYSCRIPT
> HEIGHT=400 WIDTH=10>
></APPLET>
>
><P>
><A NAME="JUMP">jump here from JAVA via JAVASCRIPT
></A>
>
></BODY>
></HTML>
>
>
>http://www.tactika.com/realhome/realhome.html is a very good site when u
>talk about netscape, applets, javascripts & powerbuilder, its how to
>site....
>hope this helps....
>Oaq
>
>
>
Technical Details
Message-ID:
<7f101i$fa02@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7eglvh$9m10@forums.borland.com> <7ei1oe$1i311@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,2931bf6f0b56a00e X-Google-Attributes: gidf74b3,public From: "Dillan Fernando" <dillan@geocities.com> Subject: Re: Netscape java API Date: 1999/04/14 Message-ID: <7f101i$fa02@forums.borland.com> X-Deja-AN: 466140700 References: <7eglvh$9m10@forums.borland.com> <7ei1oe$1i311@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language