Solved

Netscape talking to Java App(lett)

Posted on 1997-03-25
4
166 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

920 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

16 Experts available now in Live!

Get 1:1 Help Now