🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14872

How do I access Javascript from java applet?

#14872
From: James Rice
Date: Sat, 24 Jul 1999 00:00
32 lines
1685 bytes
Please help me.

All I want to do is access the basic information contained in the document
which holds my applet.
I've managed to find exactly what I want for netscape - see:
            http://www.apl.jhu.edu/~hall/java/JavaScript-from-Java.html

But I need a way of doing it for any browser.

My javascript contains this:

----------------------------------------------------------------------------
--------------------------------
.........
function makeview() {
         view_window = window.open("test.html","view_win");
}

</script>

<APPLET code="gp.class" width= 750 height=72>
</APPLET>
----------------------------------------------------------------------------
--------------------------------
What I need is some way of accessing the value 'view_window.location.href'
from the applet.
If there was an HTML form, I would like to be able to access its fields from
the applet also.

            Thankyou to anyone that can help me.

                                                            James
Technical Details
Message-ID: <7ncvqu$nhd$1@news5.svr.pol.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1ce1f7a900d7f4b3,start
X-Google-Attributes: gidf74b3,public
From: "James Rice" <news_rep@ricenet.freeserve.co.uk>
Subject: How do I access Javascript from java applet?
Date: 1999/07/24
Message-ID: <7ncvqu$nhd$1@news5.svr.pol.co.uk>
X-Deja-AN: 504811001
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: abuse@theplanet.net
X-Trace: news5.svr.pol.co.uk 932840094 24109 62.136.61.214 (24 Jul 1999 18:14:54 GMT)
Organization: Customer of Planet Online
NNTP-Posting-Date: 24 Jul 1999 18:14:54 GMT
Newsgroups: borland.public.jbuilder.java.language