?
Solved

Netscape talking to Java App(lett)

Posted on 1997-03-25
4
Medium Priority
?
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

718 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