How do I use applet.onScriptStatus?

When we are launching the JVue applet quickly, multiple times in a row, we sometimes get into trouble and the feeling we get is that Java, or something else, at the client side, is pushed too hard. So, we have tried various ways to ask the currently executing viewer instance if it is "ready", or at least "half ready" before launching the next instance. We have had different success with different approaches, all the way from just waiting for X seconds before we launch the next viewer instance, to use methods like applet.waitForLastMethod. We always send in a JavaScript method to the ONINIT parameter of the applet, so that at least we are not trying to load a new instance before the applet is loaded. We have also tried the approach of calling getFileName, and when it returns non-null we at least know the document is loading and we can launch another viewer. The best thing would of course be if we could know then the loading/rendering is 100% complete.
The other day I found this method in the documentation:
ftp://active-project.com/jVue/docs/JavaDocs/VueBean/com/cimmetry/jvue/JVue.html#onScriptStatus(int, java.lang.String, java.lang.Object)
It sounds like this method could be used to "wait" until things have settled down before we give green light to process the next document. But it is not self evident how this method can be used. I have searched the web and can not find one single example on how it is used.
Any ideas?
Thanks!
/Mathias

The onScriptStatus is the implementation of the ScriptStatusListener interface and should not be called from outside.
You may use JVue.setStatusListener(String statusListener) : The statusListener is the name of a JavaScript function that will be called (by onScriptStatus) each time a script command gets executed.
The statusListener parameters are similar to the onScriptStatus params.

Similar Messages

  • How can I use applet to get the desktop image of client

    hi,I have a question to ask u.
    How can I use applet to get the desktop image of client? Now I develop a web application and want user in the client to get his current image of the screen.And then save as a picture of jpeg format ,then upload it to the server?
    I have done an application to get the screen image and do upload file to server in a servlet with the http protocal.

    Since the desktop image is on the client's local hard drive, you'll need to look at trusted applets first.

  • Using applet in j2sdkee1.2.1(sun server)

    hi
    i have one applet class which i want to use in jsp page. i want to know where i have to keep applet class in sun server while deploying the application
    thanks

    PLZZ tell me how i can use applet in jsp using sun server.
    nobody in this forum helping me on this topic!!
    atleast tell me probable things that i can do....
    waiting for reply.
    thanks

  • How to run an Applet using the JDK1.3.1 platform?

    I'm a beginner of Java Applet.
    I've type in the sample program provided in the text book, and compiled it using the jdk1.3.1 platform.
    Usually we run a java program using java [filename], right?
    How about running an applet file?
    What is appletviewer function?
    Thanks!

    I try to put it in a HTML page but it required me to download a Java Virtual Machine.
    I've been searching sources for that but stil cannot get.
    This is always what I get:
    [We're sorry, you cannot view this page because it requires the Microsoft Java Virtual Machine (MSJVM). Your machine does not have the MSJVM installed. For more information please visit www.microsoft.com/java.]
    I visit java.sun.com. On the right side of the page listed with the HOT DOWNLOADS.
    I click on the Java VM but still cannot get anything...
    Can u help me on that?
    I've been trying for 2 days already.
    Thanks!

  • How to retrieve system Information on client machine Using Applets

    How to retrieve video card information on client machine using applets and JNI, please suggest me on this
    Thanks
    GReddy

    1. Research platform specific OS API to do whatever you want with video cards
    2. Write C/C++ code to wrap the functionality in 1 into something looks closer to what you want to see in java
    3. Write a class that models the functionality of 2 with native methods.
    4. Write the native methods of 3 such that they call the methods of 2.
    Note that steps 1 and 2 have NOTHING to do with jni nor java. So you start by looking somewhere else for the answers to that.

  • How to select all files in "user dir" (LastAccessedDirectrory) using applet

    Hi,
    Can anyone tell me " How to select all files in "user dir" (Last Accessed Directrory) using applet"?
    For this which method in applet used?
    Thanks in Advance.

    1) Do you want "user dir" (watever that is) or do you wnat the last accessed directory? Last accessed by what/whom?
    2) Applets can't access the local file sytem, and for good reason, unless they're signed and the client has given permission.

  • How to load an applet using custom classloader ?

    Hi All,
    How to load an applet using custom classloader rather than using default browsers classloader i.e AppletClassLoader usually ?
    Regards,
    Kumar.

    I would guess that that would require two applets.
    The first does nothing but create the custom class loader and then load the second applet.

  • How to show local filesystem view using Applet

    hi all,
    I want to display local filesystem view for file transfer using Applet.
    Thanks.

    Thanks for reply.
    Actually I am able to display JTree of specified drive. For that I have created one class that implements TreeModel. But now I want to create a JTree containing listing of all the drives of Windows operating system.
    Here is the code :-
    private JTree               moFileTree;
    private FileSystemModel moFileSystemModel;
         moFileSystemModel = new FileSystemModel(new File(System.getProperty("f://")));
         moFileTree = new JTree(moFileSystemModel);
    This code gives the listing of f: drive.
    And I know how to find out all the roots
         //To find out the all possible drives present on machine
              File aoFileRootDirs[] = File.listRoots();
              for (int iFile=0; iFile<aoFileRootDirs.length; iFile++)
                   moFileSystemModel = new FileSystemModel(new File(aoFileRootDirs[iFile].getAbsolutePath()));
                   System.out.println("file : "+aoFileRootDirs[iFile].getAbsolutePath());
    But I want to create one JTree of all these roots.
    Thanks.

  • How to access remote database using applet

    hi all,
    I want to know how to access remote database using applet,
    Please help me anybody.
    Regards
    Jesu

    If the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.

  • How can I use a applet in a JSP file?

    hi
    I failed to use applet in a jsp file.My workspace is a BC4J type. I put the applet's source file in business component project.the jsp is in JSP project.
    The jsp file calls applet by <jsp:plugin></jsp:plugin> style.
    The error is can't find the applet class.
    why? Thank someone for give me help.

    Actually using jsp applet tags does not mean that it is taking care of that the classes are available. It simply renders the Applet tag tothe JSP page. If e.g. teh codebase is specified as /java/, then there should be a mapping to the Java class location with thename of /java/. If codebase is not provided, then the Java class must be in the classpath of the JSp servlet.
    Frank

  • How to access a file using Applet?

    Dear all,
    I would like to use an applet to read and display information on server side, but there still a fileaccess permission denied, what can i do?
    The idea of the web service is like that::
    1.User connected to a webpage, than they can choose the file and then,
    2. the file name will be transfered into the applet (using applet><param> tags etc.)
    3. THe applet read and displays information.
    In addition, the file is placed at server side, should I set the "./hotjava/ properties "

    Maybe you should sign your applet.
    You'll find further information in the Signed Applets Forum:
    http://forum.java.sun.com/forum.jspa?forumID=63

  • How can I use a report as a filter that accepts a prompt value in R18?

    In R17 the following setup worked properly. 1) have a main report that uses another report as a filter report. 2) In the filter report, add a criteria statement which is prompted. 3) pass an argument from a web link or embedded web applet on the report URL using the field reference from the filter report criteria prompt. However, in R18 this no longer works. The filter report does not bring back a set of id's that is used for filtering the main report. The main report just displays all records as if there is no filter criteria supplied. Has anyone else encountered this behavior in R18?

    I'm trying to figure out how I can use a simple class
    I have written with methods and properties in Sutdio
    Creator.
    I have been looking around, but I've only found how
    to use an EJB directly from Creator. We would like to
    use a bean that handles all the connections to the
    app server and only returns the result to the JSP.
    I know there has to be a way to do this, if anybody
    has any ideas please help!I'm not sure I follow 100%, but you can use POJOs via Spring integration. Do a search on this forum for Spring and you should find a tutorial I wrote on it a while back.

  • Print string to client printer using applet

    How to print a string directly to the client printer after clicking a button from my jsp/html page?
    I have posted a similar question here and someone(pqeuens) advised to use applet. I have been reading about applet & created one.
    I tried running it as a Java application & it prints as expected. However when i put it inside a jsp/html page, it will not print.
    Can anyone help me out on this? Perhaps share a code. That will be very much appreciated...
    Thank you

    I said you couldnt just print from JSP but you might be when you use a SIGNED applet.
    But then you need to move to the java applet forum and ask question there.
    Furthermore a standard applet cannot print because of the security invloved in applets. Nor will you be allowed to write files onto the client.

  • How to load an Applet application for 1000cards?

    Hi Friends..
    I want to know How to load an Applet application for 1000cards?..
    Assume that, i have an Applet application that need to loaded into 1000cards..
    So, how to solve this?
    Do i must to load an application manually for each card?
    Is there any another way?
    Thanks in advance..

    for 1000 cards you can use a "small" printer like an evolis "dualis" or something like that
    we've produced thousands of cards with this method in my company.
    the pro is that you can also print the cards in the same time.
    they usually have simple APIS like get_new_card_from_loader(), put_card_on_contacts(), eject_card()
    you can connect any reader on the printer , the raw card contacts are available on a connector.
    some printers also have contactless couplers.
    but remember that deploying cards in the field is not just loading an applet.
    it's also a cryptographic challenge, you need to change the card keys or anyone will be able to play with your cards, adding and removing applets as they want.
    typically this is achieved by using an ultra secret mother key and whatever derivation algorithm you like using data from INIT UPDATE as diversifier. example, you can TDES cipher part of the INIT UPDATE data using the mother key as TDES key, or use something involving SHA1, using a HSM if you are serious, etc.
    for your entertainment here is a high volume card personnalization machine. That's amazing.
    http://www.youtube.com/watch?v=6ZBF_yKRF5w

  • Accessing a File within a zip, which was archived using Applet Tag

    Hi,
    Could Any one please tell me, How to Access a File from within an Applet. The File resides inside a zip which was Archived using <Applet> Tag.
    Actually, I want to write an application which runs both online and offline. So I have chosen Applet and All the files Which I need are zipped and is Archived through <Applet ARCHIVE="example.zip">.
    Now I want to access those XML files which are inside example.zip from my Applet.
    How can I do that?
    I think I will get security Exception.
    How to get rid of this security Exception.
    Kindly Answer soon.......
    It's very urgent.
    Thanking you,
    KumudaRaj

    Did you already try signing a jarfile? If no ->>
    You can call a class inside a jar-file within the applet.
    if this class should be able to acces files the jarfile
    first has to be signed. to do this, you must generate a key.
    the complete work:
    1. write your applet
    2. write a html-page with following code:
    <APPLET code="guestbook.class" archive="guestbook.jar" width=600 height=400></APPLET>
    3. make a zip-file with the guestbook.class, guestbook.form, guestbook$1.class, guestbook$... and rename it to guestbook.jar
    4. in the console type:
    keytool -genkey -alias YOURNAME
    5. sign the key to your jarfile with:
    jarsigner guestbook.jar YOURNAME
    6. try the applet. a warning should appear which you have to answer
    with YES then it should work
    my trouble is that i cant acces files anyway because right now i don�t
    alreadv have the clue to get the right (absolute?) path for the file. means i get an ioexception because the applet cant find the file :-((
    does anyone know how to solve this problem then? my code is:
    FileReader Stream = new FileReader("/members/Ui97u8g4f6b89mj90kh5gbr4ecf6KXC4/guestbook.txt");
    ...

Maybe you are looking for

  • Tons of errors

    My propose is: �     Log onto the server as the administrator named root. �     Create a new database named JunkDB. �     Register a new user named auser on the database named JunkDB with six different privileges and a password of drowssap. import ja

  • IPhoto 6 crashes in 5 seconds

    To anyone that can help: When iPhoto 6 starts it gives an indication of "loading photos" and then crashes after about 5 seconds. We have been successfully using the program for about 8 months and have about 13,000 photos. My wife reports that she had

  • Where are keywords stored

    How do I restore keywords to the keyword HUD? I deleted all keywords from the HUD, edited the keyword list and imported the edited list. I assumed that I could repopulate the keywords by updating the metadata from master (these are referenced files),

  • Cant update Multiple Rows of a table display from DB

    Problem encounter is that only 1st row of table can be updated the rest of it cant seem to be updated anyone of ya know the problem pls mail me the ans. for this thks alot <%@ page import = "java.sql.*" %> <%@ page import = "java.util.*"%> <% String

  • MSI 7250 K9n SLI Platinum & Corsair Twin2x 2048-6400C4 Problems

    Hey hey guys and gals Just bought this memory and having major pain getting it to work in 800 Mzh mode. I have tested these indivually and together with memtest 1.65 at settings 4-4-4-12 [email protected] and 5-5-5-18 [email protected] and im getting