Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Netscape talking to Java App(lett)

Posted on 1997-03-25
4
Medium Priority
?
173 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 300 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

971 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