Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Using Java JTree navigation menu, is...

Using Java JTree navigation menu & frames in a browser: is there a way to track the pages being displayed in
ther target frame?

I would like the JTree to reflect where
in the site the user was at any minute,
even if they use the browser button. Have experimented with applet & cookies,
but got alot of strange errors using the
netscape.javascript.* package.

Any thoughts or assistance would be
appreciated and compensation is possible
for complete solutions.

Bill Rowe
webrep@yahoo.com
0
webrep
Asked:
webrep
  • 3
  • 3
1 Solution
 
heyhey_Commented:
what about using 1 x 1 applets inside all pages that will inform the main applet about page name ... it will work fine if there is only one browser window pointed to that site (otherwise, you'll need some JavaScript)
0
 
webrepAuthor Commented:
Hi Heyhey,

Is inter-applet communication
reliable in your experience? If
so then this may be a solution.

Do you know how applets on different
frames would locate each other, that's
not browser specific?

Thanks in advance,
Bill Rowe

0
 
heyhey_Commented:
according to my own experience ALL the browser JavaVM implementations use ClassLoader per URL - so if you load both applets from the same Codebase / Archive you can share static variables etc.
another option is AppletContext.getApplet() which is somewhat tricky (because both applets may be loaded from different classloaders, so you can exchange only 'standard' Java objects ...

but it seems that you'll always have problems if the user has opened several browsers to the same site ... maybe some JavaScript will help you ...

well - I can't give you code solution, but I'll help you if you have any problems ... that's an interesting question :)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
webrepAuthor Commented:
Thank you here. I will give this
some additional thought....

Bill Rowe
webrep@yahoo.com
0
 
heyhey_Commented:
ok

you can contact me at heyhey_@iname.com
0
 
webrepAuthor Commented:
Thank you very much for all
your hard work here.

Bill Rowe
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now