How can i hnow the applet had load complet by javascript?

hi,how can i hnow the applet had load complet by javascript?
my applet load by <object> tag,
i add a "onload" event listener to the html page's <body> tag,but the event listener is call by the page load,
but ,the applet sometime has not loaded complet,so how can i know the applet had loaded complet!
the <OBJECT>has some method to check the applet load status??
3KS!

You can have your applet call some javascript to inform that it is loaded. Make the call from your
applet's start method
Suppose you have a javascript function called "appletReady()"
which sets a ready variable to true or whatever.
Now in your start method of your applet you can do the following:
       JSObject win = null;
        try
            win = (JSObject)JSObject.getWindow((Applet)this);
            if (win == null)
                System.err.println("JSObject window was null");
            else
                    win.call("appletReady",null);
        catch (Exception jse)
            System.err.println("Exception: " + jse);
        }Make sure you import netscape.javascript.
And when you compile use the appropriate jaws.jar in your classpath
It should be found under jre/lib of your JDK installation.
I hope this helps.

Similar Messages

  • How can i customize the applet message...?

    Hi All,
    How can i customize the message in the applet, i.e while invoking the login form over the web its showing the default msg like " Oracle AS Forms Services", i would like to customize this, but i have down some changes in the D:\Forms10gR2\forms\j2ee\formsapp\formsweb\WEB-INF\web.xml file, but still its not showing the customized message.
    Kindly update me
    Thanks in advance
    Thangaraj

    Hi,
    Just try one of the following parameters at the formsweb.cfg
    # Forms applet parameter
    restrictedURLparams=HTMLbodyAttrs,HTMLbeforeForm,pageTitle,HTMLafterForm,log,allow_debug,allowNewConnections
    # Forms applet parameter
    formsMessageListener=
    # Forms applet parameter
    recordFileName=
    # Forms applet parameter
    serverApp=default
    # Forms applet parameter: URL path to Forms ListenerServlet
    serverURL=/forms90/l90servlet
    Then Restart your OC4J.
    Regards,
    Hamdy

  • How can i refresh the applet context

    I want to make my applet refresh after some time that is 10 seconds.
    i want to change the picture on the applet by this time please tell me how to do this i have used
    public void repaint(long time);
    But this did not work for me
    thanx Alot

    hi,
    you need a thread which will sleep for 10 seconds, call repaint() and then goes to sleep again. Something like this:public class MyApplet implements Runnable
      private Thread repaintThread = null;
      public void run ()
        while (true)
          myThread.sleep (10000);
          repaint();
        // + catch Exceptions
      public void init ()
        myThread = new Thread (this);
        myThread.start();
    greetz,
    Stijn                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I REMOVE the iPhone Tethering Hack completely ?!

    <Edited by Host>
    How can I completely REMOVE the tethering hack from my iPhone, and from iTunes/iMac ???
    _*I WANT TO REMOVE IT, COMPLETELY*_
    • Do I have to reinstall OSX in order to regain my default settings in iTunes, and Terminal?
    • Since i had to put this (defaults write com.apple.iTunes carrier-testing -bool TRUE) inside the terminal for the hack, can i just edit that?
    +Somebody Please help. This hack is making my phone unstable, and unreliable.+

    Lots of misinformation floating around:
    1. You don't need to do anything to iTunes. You changed a property value that allowed iTunes to let you see the IPCC file and install it.
    You can leave this, it is not hurting anything, just don't go looking to install IPCC files (iPhone Cell carrier file).
    2. This is not making your iPhone unstable. AT&T will release this same file when they allow tethering.
    3. If you want to get rid of it, you have 2 choices install an official AT&T carrier file (there is not one released for 3.0 yet), Or just restore your iPhone with Official 3.0 software but don't restore the backup. Set it up as new.
    If your phone is unstable, you may have done other things - you don't say, so just set up as new.

  • How can we improve the (extremely) long loading time of our clickable PDF?

    This week the designer of our provincial government delivered a nice clickable PDF. The file wil be loaded on a webpage and the link of that page will be send by email to a stakeholder group. The PDF-file was made in Acrobat X Pro 10.1.3
    When testing we discovered major problems when loading the pages of the 3 Mb PDF-file. Depending on the platform uses this can take minutes if is loads at all. Apart from that funny things happen...
    Test 1 - Laptop / Windows 7 / Explorer > PDF doesn't open
    Test 2 - Laptop / Windows 7 / Chrome > buttons in PDF don't work
    Test 2a - Laptop / Windows 7 / Chrome again > the first page of the file opens, but with a blue haze
    Test 3 - Desktop PC / Windows 7 / Explorer > PDF works fine
    Test 4 - Desktop PC / Windows 7 / Chrome > buttons in PDF don't work
    Test 4a - Desktop PC / Windows 7 / Chrome again > the first page of the file opens, but with a blue haze
    Test 5 - Desktop PC / Windows Vista / Explorer > no loading issue, but Explorer crashes when using the PDF
    Test 6 - Unknown tablet PC / Android > PDF works fine
    Test 7 - iPad 3 tablet PC / Apple OS / Acrobat >  buttons in PDF don't work
    So the results are quite alarming. What can we do to guarantee our policy makers a succesful publication next monday?
    We appreciate any suggestion.
    Maarten van Vliet

    Chome, by default, renders PDF files using its own plugin - and that doesn't support as many features as Adobe Reader does.
    iOS won't support any interactive elements that use scripting due to the limitations imposed by Apple.
    Without seeing the PDF it's hard to say why it's crashing on test 5, as 'clickable' could mean anything. If the stakeholder group have Adobe Reader X installed and are running on a desktop then there shouldn't any problem even with the most complex PDF, but if the PDF uses features specific to the current version and they have an old copy of Reader or a third-party PDF display application,  some things won't work properly. You can persuade them to upgrade by adding a note to the document or the website it's served from, but you can't force them to do it, nor can your webserver detect if they have a suitable application installed or not. The PDF file can, but only if it gets as far as opening.

  • I have Hughesnet with limited bandwidth and even with adblock plus websites start flash videos now - how can I stop the videos from loading when the web page loads

    Hughesnet only allows us to use an allotted amount of download. If I use tabs on Firefox, some pages start their bandwidth eating flash yada yada and waste my allotment. I'd like to have Firefox default to NOT loading flash unless I do something to say OK. Adblock plus helps eliminate flash ads, but not page content that is in flash.

    https://addons.mozilla.org/en-US/firefox/addon/flashblock/

  • How can you get an applet to obey the CSS z-index attribute?

    How can you get an applet to obey the CSS z-index attribute?
    I have a DHMTL page with a panel that I want to slide back and forth. But another part of the requirement is to have the panel look like it is sliding under another panel.
    The problem is that an applet is on the panel that slides. When the sliding panel move under the stationary panel the applet does not go under the stationary panel, but the reset of the sliding panel does render looking like it is sliding under.
    See below.
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    ~ has a z-index of 1
    # and * have a z-index 2
    # shows above ~ and below ^
    ^ has a z-index of 3What I am getting with the applet on the panel with a z-index of 2 is the following
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    --------------------------------------------------------Where @ is the applet. Notice how the applet is on top of the ^ but the panel under it, ^, is under like it should be. All the panels are 1x1 tables with a border. So how can I get the applet on the drawing shown with # and * to follow the rendering of the z-index of 2?

    Hi,
    I have the same problem, and don't know how to solve it, So, i had tried to put my applet in a div tag wih z-index=0, but it still hide my other Dhtml divs with bigger Z-index (z-index =1000)
    Have you any idea to solve this.
    Thanks
    Hakim

  • TS4009 set up my new iPhone 5S 6 hours ago - when go to Music it says "Loading iTunes Match-" now status bar - how long does it take?  how can I see the progress or status of the Load?  I don't know if it is actually doing anything

    How can I find the status of loading iTunes match?  I set up my iPhone 5S over 6 hours ago and still no music.  No status bar - I don't know if anything is even downloading

    Welcome to the Apple Community.
    It shouldn't take anywhere near that, I'd try again, make sure you have a good connection.

  • HOW can I make a .SWF default load after its first load?

    When you have the SAME parent API on every page of an (X)HTML website, can a .SWF tell itself to load from a default position when a website user navigates to different HTML pages?
    Here's my parent API as it stands:
    http://www.playingthepoet.com/
    HOW can you tell the .SWF to load from a default position once the .SWF has loaded a first time? AND from any page of the website, not just the Home page? This is an advanced .SWF networking issue. And I'm not sure if the best solution is a Javascript of if there's a direct AS3 programming solution.
    The blurs and fade-ins are a bunch of timer variables and timer event methods timer event listeners. I want that intro ONLY ONCE. And NOT every time a user changes HTML pages. Please help, and MANY thanks for your time!!
    NT

    Hi ,
    You can set a variable say "count" on stage composition ready -
    sym.setVariable("count" , 0);
    On stage click , you keep checking the value of this variable -
    if(sym.getVariable("count") == 5)
      sym.$("Symbol_2").show();
    //Here "Symbol_2" is the next button that you want to appear on screen(which is initially invisible) when the symbol_1 is clicked say 5 times.
    Now, on click of a button , you keep updating the variable count -
    var countnew = sym.getVariable("count");
    countnew = countnew+1;
    sym.setVariable("count" , countnew);
    Attaching the sample for reference.
    Thanks and Regards,
    Sudeshna Sarkar

  • How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    How can I get the 23 July update to load onto my iPad. I haven't been able to access my documents or work for weeks and need to use it. Has anyone else had similar problems?

    Hello Arthur,
    Thank you for the reply.
    You were correct that deleting the app and reinstalling it was the only thing to make it work but unfortunately I lost all the documents I made, even though they were backed up to iCloud before i deleted the app. At the same time as deleting pages I had to delete keynote and numbers too, so I've lost all the documents in them too.
    The mb of data which was assigned to each programme in iCloud has reduced, so. I guess they are gone for good. Is there any other way to reaccess them?
    Not your fault but I am a bit fed up the the iPad. I have lost work that I've done and have no other copy apart from what was in iCloud, as I don't have a printer and couldn't email them too myself as I couldn't get into the programme and  i've also got episodes of tv series I purchased that I can't download and albums that are half downloaded with songs missing, so I feel a bit swindled out of time and money and am going back to DVD ,  pen and paper and CDs .
    Instead of using iCloud I guess the only way to make sure I don't loose any more documents it to email them to myself each time I save them on the iPad. Is there anything else you could suggest please?
    I don't have any other apple products apart from iPods, so I can't access the iCloud on anything else can I?
    Thanks
    Amanda

  • I have installed Adobe packages and cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?

    I have installed Adobe Creative Cloud for teams CC Packages which says that Acrobat XI Pro is installed. Your support page says it does not install Acrobat and I have to look in the Extensions folder for an MSI file.  I have run a number of searches and  cannot find the Acrobat extension folder please advise how can I get these applications to load onto my computer?
    Also I now administer the teams and have accepted the invitation to I received to be a team member and download the apps.  The admin page shows that I have been sent an invitation but does not show my account as "ACtive" unlike my other team members.  I tried to use the link in the invite to accept it become active but the link displayed an error saying I had already accepted the invite... why is no account not active?
    Finally what other product downloads in Creative Cloud do not actually download as part of the Creative cloud Packager for downloading the apps? e.g. acrobat and what else?

    My apologies Eadeszoo I believe our support agents are unavailable on January 1.
    Are you able to copy the contents of the DVD to your computer?  Are you receiving any particular error messages when you are trying to install?  Finally which operating system are you using?

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I have three different ipods with music on them and have had to replace our computer as it was in a fire. How can we combine the ipods into one ipod.

    We had to replace our computer due to a fire and lost many of the fiels which were on them. Many were music files for the ipods, we have thre. Also, do not have ID's and passwords to the iTunes store.
    How can we combine the information so that they are all in each one or at least compbine everything into one ipod?

    Just so you know the method suggested by Nelsonleee will cost your $29.95 USD, Yamipod is free.

  • I down loaded sygic on my iPhone 3s but the icon is missing even in the search but when I want to download it again ,it say this application is present, how can I make the icon to show up

    I down loaded sygic on my iPhone 3s but the icon is missing even in the search but when I want to download it again ,it say this application is present, how can I make the icon to show up

    - Have you tried a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Try syncing  the iPod to your computer. Then delete from iTunes and sync. that should delete it from the iPod. Then redownload it.

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for