Solved

Netscape talking to Java App(lett)

Posted on 1997-03-25
4
167 Views
Last Modified: 2010-04-16
I am looking for a way to send all/any Netscape Events (as pressing the Back Button or selecting an item from the bookmarks) to a Java Applikation or any Programm for that matter, regardless of the loaded page.

Please note the direction! I do know about the remote mechanisms availiable.

Also I am not talking about a way to manipulate the browser
in such a way that it will do anything for me. Quite to the contrary am I trying to manipulate another program by pressing any of Mozillas buttons. Like a hook in most of emacs functions: whenever a file is loaded and you want to add a new functionality, you add your function to the call-list for (find-file)
0
Comment
Question by:sage032597
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:tatti
ID: 1219186
An Applet can't tell the browser what it should do, except for the few defined API calls (showDocument(), showStatus()). What you need is JavaScript, ie. pseudoJava that is interpreted and executed by the browser itself. It can be used to do quite a bit with the browser, but I'm not sure it can be used to communicate with an applet. There's a topic for JavaScript right here, so you'll probably get a better answer there.
0
 

Author Comment

by:sage032597
ID: 1219187
Edited text of question
0
 

Author Comment

by:sage032597
ID: 1219188
I have changed the question after tatti's answer to make the direction of the information flow obvious
0
 
LVL 1

Accepted Solution

by:
tatti earned 100 total points
ID: 1219189
My answer wasn't too well formulated, after the second reading. I will try again.

You cannot use Java to tell the browser anything, except for those few standard calls. This also means that you cannot tell the browser to "send me an Event whenever this widget is used". This is actually, a bit stupid, since a lot of intelligent agents and other statistical programs could then be created, if the applets could access information such as how the user navigates, what pages are loaded etc.

But this is unavailable, possibly because of security issues. The only information you can get it locate other applets in the page and communicate with them.

I for one haven't dwelled in JavaScript, but if anything could be used to extract the information you want, that should do it. But as for relaying that information to an applet - I'm sceptical.

Sorry for not being able to give you the answer you're looking for.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now