Need to display an HTML page from background thread

A

Ashok

Hi,
I have an applet on my HTML page this applet starts a Windows thread
using the JNI. Also JNI calls back the Java method on certain event
detection. On the evenet detection JNI wants APPLET to redirect the
current HTML page to new page by calling the showDocuement(newurl)
method.

Basic flow is like this:

HTML->APPLET-->New HTML PAge
| |
| Native Thread
| |
| Some Event
| |
<---


Show from the above diagram when applet is called to show new HTML
page it is in stopped state and showdocument exits silently. I was
wondering how can I display a new page from the same server on my
browser when applet is in stopped state.

Your help on this is highly appreciated.


Regards,
Ashok
 
A

Ashok

Andrew Thompson said:
Open a new browser..

Hi Andrew ,
Thanks for your reply, could you please suugest some way to open new
browser instance, because, the page that was containing the applet is
gone to history and applet aswell only background thread is left. So,
I am unable to find a way, since the currently displayed HTML page has
no connection with background thread. Any suggestion is highly
appreciated.

Regards,
Ashok
 
A

Andrew Thompson

..could you please suugest some way to open new
browser instance,

I think you missed the 'dripping with sarcasm'
aspect to my answer, Ashok.

Why do you think you need to do this?
What is the situation where this happens?

If the situation cannot be reworked, Ashok,
I have severe doubts you *can* achieve what you
want, an applet that is in 'stopped state'..
wait a second.

You mentioned JNI.

Can you 'restart' the applet using JNI?
Is the applet stopped because the browser
is minimized?

Perhaps you could restore it using JNI as
well (and thus restart the applet).

My original answer might have been wrong
(besides being sarcastic) but it will take
others that are more familiar with JNI to
help you.

You can help *them* by answering the
questions above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top