Opening and closing an applet or closing a webpage

Hi,
i was wondering if it was possible to open an applet from inside one method and close it within another method. I do not seem to be able to do this.
I have however opened a HTML page that contains the applet and this appears to work fine. Can i, in another method close this HTML page that i opened?
Cheers,
Gareth.

Yes you can, using javascript. What I recommend is to open the new page containing the applet with a call to a javascript function in the page that is running the original applet. Then, call another javascript function that closes the window that was opened. For example
//this code make a call to the javascript function open_applet
JSObject obj = new JSObject();
obj.call("open_applet",null);
//this code make a call to the javascript function close_applet
JSObject obj = new JSObject();
obj.call("close_applet",null);Now, on your html (or jsp) page, just put the following:
<script>
var mywindow;
function open_applet(){
mywindow = window.open("url","_new");
function close_applet(){
mywindow.close();
</script>
Hope you can use this! Regards!

Similar Messages

  • After upgrading to 3.6.12 my browser is not opening pop-up windows and while closing the browser giving a message that some tabs are open and shall the same be closed? I have not encountered this problem with eralier version. Is there any known issues?

    Some of my web pages open a new pop-up window for entering credentilas and display sensitive information. After upgrading t0 3.6.12 i found that firefos is not opening pop-up windows (earlier version allowed). When I close the browser, it gives a quit message saying there are unclosed tabs and windows of firefox. shall they be saved for next time start.
    Also observed that the memory usage (from Task manager)is very high compared to earlier ones and the process is not closed even if I close the browser.

    3.6.13 is also behaving similarly.

  • Standby when open and on when screen is closed... Help!  ???

    I accidentaly closed my Mac as I was watching Apple TV. I quickly opened it again and and the screen was black. I closed it and opened it again, but the screen stayed black. I removed the battery and turned it completely off several times, but the screen is not responding.
    It seems to be in standby when I open the screen and turn on as I close it.
    Can somebody help me reverse this - fix this?
    Thanx...

    You mean that, after closing and immediately opening lid you cannot use your mac any more? Display is always black, even after force restart? Strange...
    ‘I tried making it a hard disc on my iMac, but it won't let me do that either.’ – you mean restarted into Target Mode, correct? i.e. connected via firewire cable to another mac, and by pressing t after chime. BTW, do you hear the specific chime after pressing power button? If in target mode, is it displayed like an external disk on your iMac desktop?
    If not, I suspect it was mere hazard that it happened when you closed and opened lid, it jsut happened in that moment, and this has nothing to do with that, but with something more serious.

  • Even before I opened Firefox, I got a message saying that Firefox was open and it had to be closed or I had to restart my computer; what can be done to resolve this problem?

    This is a continual problem. Even when I close Firefox and try to access it again, it takes minutes before I can access it again. Today was the first time that I received the window saying that another window of Firefox had to be closed before I could access Firefox when I hadn't even tried to access it to begin with. I don't want to have to restart my computer every time I try to access Firefox each day. Please help!

    [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#close_firefox Item #38]: (#close_firefox)
    :<b>Closing Firefox</b>, avoid getting <b>Firefox already running</b> messages:&nbsp; To properly shutdown Firefox when multiple windows or closing the last window use File → Exit/Quit (or Firefox button → Exit).&nbsp; Closing Firefox with the [X] in the upper right corner closes the window ("Ctrl+W") but that does not necessarily close Firefox if it has subtasks running.&nbsp; If you want to close and reopen Firefox use the "Restart" within Add-ons if you made a change requiring a restart, or install "[https://addons.mozilla.org/en-US/firefox/addon/restartless-restart/ Restartless Restart]" ("Ctrl+Alt+R") which will allow you to take Firefox down and restart without having to check the Windows Task Manager to see if Firefox first actually ended. (See [http://kb.mozillazine.org/Firefox_hangs Firefox hangs])
    Closing Firefox properly will not completely eliminate having to use the Windows Task Manager to close Firefox on Windows but it will certainly reduce the need to use it often.
    Also See [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#tabslost item #31] '''Restoring tabs from a lost session''' (#tabslost)
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>
    You can make '''Firefox 6.0.2''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface
    There is a lot more beyond those first 10 steps listed, if you want to make Firefox more functional.

  • Hello, I've recently upgraded to 6.0.2 and find when I have closed my firefox browser it wont open again. I am told firefox is still open and it needs to be closed or I have to restart my pc again. I am operating Windows XP

    I am told Firefox needs to be closed before I can access it again. Firefox is already closed so I have to restart my desktop. This problem didn't arise with the previous version of Firfox.

    Firefox will not start
    * https://support.mozilla.com/en-US/kb/Firefox%20will%20not%20start
    * http://kb.mozillazine.org/Browser_will_not_start_up
    Check and tell if its working.

  • Firefox will not open and my profile name changes, after I creat a new profile it works until I try to open again

    Firefox version 16.0.2 was working I have used FF for years. A few days ago it started to run very slow opening web sites. Then this morning when I tried to open it I saw a progress bar that looked like the kind I see after an update has been applied but FF never opened.
    I rebooted my windows 7 64 bit and tried again, nothing FF would not open and I got no error message.
    So I opened the profile manager and only found a default profile not the one I created last year with my name. I created a new profile and browsed to my old profile folder. FF opened and ran fine until I closed it and later tried to open it again then I kept getting an error box telling me that FF had crashed and asked if I wanted to send a report and restart, I did but no good it still would not open.
    I ran the profile manager again and found my profile had changed name to a bunch of numbers. I delete that profile but kept the folder then made a new one and that worked. I shut it down again and once again I get the We're sorry error box.
    By the way I had set the profile manager to open when FF loads and it is not opening so the problem is before it gets to that command.

    First I already have my view set to show everything so that is not the problem.
    But I just tried opening "Computer" from the start button then type in profiles.ini in the address bar and hit enter. The profile manager opened with my profile listed. I selected it and hit start firefox and it opened as it should.
    I closed it again and tried to open it from the shortcut in my task bar and I got the Sorry window.
    But then I tried to open it from the short cut you get when you press the start button and program list and it work!
    I went back to my desk top and tried the short cut on the desk top and it worked.
    So I deleted the short cut on the task bar and created a new one and it worked.
    I rebooted the computer and tried again and the task bar shortcut works and has the right profile.
    So it seems that the problem is that the short cut was corrupted and was causing the error that caused the program to fail to open.
    I had no idea a shortcut could do that. In the past I have had short cut stop working but never do what this one did.
    I still have no idea where the profiles.ini is.

  • When i open reader two AcroRd32.exe*32 processes open and never close even after exiting the reader.

    when i open reader two AcroRd32.exe*32 processes open and do not close after closing the reader. i have seen 10 AcroRd31.exe*32 processes open. do I have an undetectable virus or is the software just poorly written and tested. I am running Windows 7 premium that is fully up to date and the reader is up to date also. i have even deleted reader and reinstalled it.
    All 8 Processors activity jumps really high while AcroRd.exe*32 is running with no pdf documents open and as soon as i end the processes the processor activity goes down to near 0 according to the performance tab in task manager. My fan also kicks on because of all the heat from the processor.

    open acrord32.exe and go to edit, preferences, internet, and then uncheck "Allow fast web view" and "allow speculative downloading in the background". This will save your processor and keep your system from locking up from all of the acrord32.exe processes running.

  • Closing one applet and open another...

    Hi all,
    What I currently have is a very basic applet that requires you to type in your password and follow by pressing the OK button. What I want it to do is following the pressing of the OK button, I want that initial applet to close and have another applet open. It doesn't seem too over the top difficult but right now I have no idea. Please help.
    Thank you

    I do work with applets. Reply #4 is the correct one IMHO.
    If you don't understand what he is saying, I will try to put it
    in other words.
    1. Login dialog. Once your applet starts, it will display nothing
    essential, perhaps just a nice background and it will open a
    dialog for userid-password. If authentication is ok, close the
    userid-password dialog and display in your applet whetever you
    have in mind.
    2. Card layout. Your applet will start by asking for userid-password
    in its area inside the page. When authentication ok, display whatever
    the applet is supposed to display.
    In both scenarios, there are no two applets, but a single applet that
    changes from state 1 (authentication) to state 2 (display data).
    The only difference between the two scenarios is aesthetic,
    i.e. do you want a popup for userid-password or you want it inside the
    page? I would go with the card layout. Both are relatively easy.

  • MB5B Report table for Open and Closing stock on date wise

    Hi Frds,
    I am trying get values of Open and Closing stock on date wise form the Table MARD and MBEW -Material Valuation but it does not match with MB5B reports,
    Could anyone suggest correct table to fetch the values Open and Closing stock on date wise for MB5B reports.
    Thanks
    Mohan M

    Hi,
    Please check the below links...
    Query for Opening And  Closing Stock
    Inventory Opening and Closing Stock
    open stock and closing stock
    Kuber

  • Open and closed invoices

    hi experts,
    I have to capture the parked, open and closed invoices in a report in reference to vendor...
    I got the parked invoice condition from the table BSTAT either v or w.
    But i am not getting the idea how to capture the open and closed invoices...
    Some one suggested me to use the ITEMSET structure but i donno how to capture those values can anyone suggest me how to do it...?
    SIRI

    Hi,
    you can use the same query...Also check the new code after the select..
    SELECT BUKRS BELNR GJAHR <b>BSTAT</b>
    FROM BKPF
    INTO TABLE T_BKPF
    WHERE BUKRS = P_BUKRS
    AND BSTAT IN ( ' ' , 'A' ) " ' ' - Normal document, A - Parked doc
    AND BLART = P_BLART
    AND CPUDT IN SO_CPUDT " Selection screen input.
    IF NOT T_BKPF[] IS INITIAL.
    SELECT BUKRS BELNR GJAHR BUZEI EBELN AUGBL AUGBT
    INTO TABLE T_BSEG
    FOR ALL ENTRIES IN T_BKPF
    WHERE BUKRS = T_BKPF-BUKRS
    AND BELNR = T_BKPF-BELNR
    AND GJAHR = T_BKPF-GJAHR
    AND EBELN IN SO_EBELN " selection-screen input
    ENDIF.
    LOOP AT T_BKPF.
    Parked
      IF T_BKPF-BSTAT = 'A'.
        WRITE: / T_BKPF-BELNR , ' - Parked'.
    process the next record.
        CONTINUE.
      ENDIF.
    Check for Open / Closed.
      LOOP AT T_BSEG WHERE BELNR = T_BKPF-BELNR
                                   AND      BUKRS = T_BKPF-BUKRS
                                   AND      GJAHR = T_BKPF-GJAHR
                                   AND      AUGBL <> ' '.
        EXIT.
      ENDLOOP.
    If the return code is 0 then the document is cleared..
      IF sy-subrc = 0.
        WRITE: / T_BKPF-BELNR , ' - Closed'.
    Else the document is not cleared.
      ELSE.
        WRITE: / T_BKPF-BELNR , ' - Open'.
      ENDIF.
    ENDLOOP.
    Thanks,
    Naren

  • Open and closing balances std report

    Dear All,
    please suggest me open and closing balances std report and can i suggest my user below t.code for viewing open and closing balnces for India scenarion T.code:J3RFLVMOBVED
    Regards
    Gopal.S

    hi
    kindly chk MB5B it will fullfill your requirement
    regards
    praveen.k

  • Downloaded, installed (in OS 10.8.2 (12C60)) click to open and closed immediately

    I try to open the app but it is closing immediatly without showing any window.  What I can do for settling this issue ?

    Could you please provide more details like:
    1. Which Application - Acrobat/Reader
    2. Version - Reader XI (11.0)/ Reader X (10.0)
    3. Any error message?
    4. Can you try with Adminstrator and Root accounts. What is the current user account?
    5. Open /Applications/Utilities/Console and then open application. See if there is error logged there. Please share the error.
    Thanks,
    Karan

  • Service Requests Open 5 days?/Service Requests Open and Closed Today

    Help!
    How would I determine service requests open greater then 5 days, I use the # of Open SR's but cannot seem to get a date to work.
    Also what is the best way to count the SR's open and closed on the same day?
    Thanks in advance.

    You need to include a TIMESTAMPDIFF function in your filter... something to the effect of
    TIMESTAMPDIFF(SQL_TSI_DAY,"Service Request"."Create Date",CURRENT_DATE) > 5
    Double check the column reference.
    Mike L

  • 7344 servo motion switching between open and closed loop operation

    I have a custom end-of-line test system presently using a 4-axis 7344 servo controller to perform various functional tests on small, brushed DC motors. The system is programmed in C/C++ and uses flex motion functions to control the motor during testing. Motors are coupled to external encoder feedback and third party PWM drives running in closed-loop torque mode from an analog command signal. The system uses all four motion axis channels on the 7344 board to independently and asynchronously test up to four production motors at a time.
    In closed-loop mode, the system runs without issue, satisfying the battery of testing protocols executed by this system. I now have a request to add additional test functionality to the system. This testing must be run in open loop mode. Specifically, I need to use my +/- 10v analog output command to my torque drive to send different DAC output levels to the connected motor.drive while monitoring response.
    I do not believe the flex motion library or 7344 controller includes functions to easily switch between open and closed loop mode without sending a new drive configuration. I am also under the impression that I cannot reconfigure one (or more) servo controller axis channels without disabling the entire drive. As my system runs each axis channel in an asynchronous manner, any requirement to shutdown all drives each time I change modes is an unworkable solution.
    I am open to all ideas that will allow asynchronous operation of my 4 motor testing stations. If the only solution is to add a second 7344 controller and mechanical relays to switch the drive and motor wiring between two separately configured servo channels, so be it. I just want to explore any available avenue before I place a price tag on this new system requirement.
    Bob

    Jochen,
    Thank you for the quick response. The 7344 board does an excellent job running my manufacturing motor assemblies through a custom end-of-line tester in closed loop mode. A portion of the performance history and test result couples the motor through a mechanical load and external shaft. The shaft is in contact with a linear encoder that closes my servo loop.
    My new manufacturing requirement is to also sample/document how the small DC motor behaves in open loop operation. Your solution is exactly what I need to perform the additional functional tests on the product I am manufacturing. I see no reason why this cannot work. I was originally concerned that I would need to reinitialize the 7344 board after changing axis configuration. Initialization is a global event and impacts all four channels on the 7344 board.
    Using flex_config_axis() to change axis configuration on a single channel without disturbing other potentially running axis channels will solve my concern. It will be several weeks before I can return to the manufacturing facility where the 7344-based testing machine is located. I will update this thread once I verify a successful result.
    Bob

  • Font usage in CS6 Premiere , Open and Closed quotes??

    Hello
    I am trying to use open and closed quotes in CS6 Premiere, without any success.
    Using a Mac 10.8.5.
    When I try the alt shft [ and the shift [ it only uses one side of the quote.
    Any suggestions?
    Is this a software, settings or OS issue?
    Thank you
    I am working on deadline....
    Brian

    One side?  I'm confused.  You mean want these?
    But you're only seeing this?

Maybe you are looking for

  • Error message for  Unable to connect (BIB-16633)

    Dear All I use Oracle Jdeveloper10g (win32), Oracle database10g or 9i (win32 ver). But Failure to connect to OLAP service. Can anyone give me what is the error message for BIB-16633. Would be really grateful if you could give me a solution as soon as

  • ACR VS RAW Developer for image detail

    I am an avid/loyal ACR fan who makes mural sized landscape prints from digital capture.  I keep hearing on various forums how Raw Developer (Mac) is the best out there for extracting every ounce of discernable detail from a raw file to a print.  I am

  • Basic guidance!!

    Hi I am new here, I am trying to add metadata in a pdf file using XMP SDK, actually I need to edit a produced PDF to put three lines of text as metadata, and read it programatically again. Can I do this? Is there a Dot Net flavour or managed code tha

  • Cannot load login profile for windows clients

    Hi i am using leopard 10.5.3.my users have a default windows profile path at /Server HD/Users/Profiles/username.when i login from windows clients some users cannot load the profile.the following error is displayed in windows clients windows cannot lo

  • Remote no go in hifi mode?

    Anyone got any tips on how to get the remote to work on hifi mode?