Applet closes itself !

Hi All,
My applet should close itself when its "close" button is pressed. To achive that the applet loads another html page "close.html" to the same browser window. This close page contains:
<script language="javascript">
window.close();
</script>and here I have a problem with IE ! It prompts that the loaded page tries to close the browser !
Now the question:
How can I avoid this prompt or how can I answer YES to the prompt in a programatic way ?
Thanks in advance !
Oleg

Piligrim,
in some web places some people says that this confirmation IE asks is issued when back button is disabled (i.e. first page loaded in browser).
A possible solution consists in cheating some browser info. Try with this
<script>
function closePage() {
window.opener = 'piligrim won';
window.close();
</script>
Then try to load URL "javascript:closePage()". You can put this URL in a A HREF="" link. Even in your applet code:
<appletInstance>.getAppletContext().showDocument("javascript:close()");

Similar Messages

  • Chat applet closes browser!!

    I'm programming a chat applet using MulticastSockets
    the connect button does something like this:
    dest = new InetSocketAddress("228.5.6.7",4321);
    try{
    socket = new MulticastSocket(4321);
    NetworkInterface netif = NetworkInterface.getByInetAddress(InetAddress.getLocalHost());
    socket.joinGroup(dest, netif);
    InetAddress address = InetAddress.getByName("228.5.6.7");
    socket.joinGroup(address);
    I also have a signed jar file so the client gives rights to the applet (so it can open the sockets)
    It works on win2k and winXP but on win98 when the client clicks the connect button the browser closes itself. I don't know what kind of error could produce this.
    Any ideas??

    In response to the original: Have you tried updated browsers on the 98 machine?
    In response to everthing else:
    If you were developing a chat application using php and javascript, I could understand using the http protocol, but if you're using an applet, why not just connect with a socket? And, for that matter, it seems fairly simple to make it peer-to-peer and just connect to whoever you want to send to.(just keep a hash of names and ip's)
    The conversation is interesting though since I've thought about the feasability of creating a php/javascript client to jabber. As far as keeping the http connection open and polling, seems like you could specify some send rate from the server side(1 packet every other second isn't the end of the world) and re-poll whenever the client hasn't received a packet for a straight 3 seconds, or something like that...
    The problem with php and javascript is that they really have funny threading and time limits(some that are server invoked), but I suppose this can be circumvented. There are loopholes.

  • TS1702 i've an iphone 3.1.3. sometimes, i have problems opening all the apps i downloaded in the past 4 months. other apps would open but the recent ones will begin to boot and then close itself. once, it persisted for over a week. pls help as am frustrat

    i've an iphone 3.1.3. sometimes, i have problems opening all the apps i downloaded in the past 4 months. other apps would open but the recent ones will begin to boot and then close itself. once, it persisted for over a week. it staarted again this evening, pls help as am frustrated. NB- i checked for apps update but all my apps are up-to-date. CT

    Try the usual steps: restart, reset, restore.
    http://support.apple.com/kb/HT1430
    http://support.apple.com/kb/HT1414
    If restoring using a backup doesn't help, try restoring the iPhone to factory settings and try for a while with just the Apple-included apps, to make sure it's not an issue with a third-party app. If it still has problems, it may have a hardware problem and will need to be sent to Apple.
    Regards.

  • Acrobat XI Pro automatically closes itself with no messages etc. after few seconds

    Greetings all,
    I don't know why but my Acrobat XI Pro (11.0.0) automatically closes itself (with no warning, no messages etc.) after few seconds. I installed the AXI as a part of the CS6 Master Collection on my Windows 8 (x64) laptop. Just as suggested at some other posts in the forum:
    I checked the "security settings (enhanced)" tab but the protected view option is already off.
    I searched for the eula.exe under the "Program Files (x86)\Adobe\Acrobat 11.0" folder but there is no eula.exe. May it be not present because I installed it as a part of CS6 Master Coll. package?
    I am using Eset Endpoint Antivirus as a third party Anti Virus Software.
    The problem occurs when:
    I open up a pdf file from outlook etc.
    I manually open a pdf file from windows explorer
    I open adobe acrobat with no file to view
    As I mentioned above, I see no error messages or warnings during the closing down. It acts as if I clicked the close button on the top right corner. I know that there are a lot of posts in the forum about this issue, but none of them helped me to solve my problem. I would be glad if you can help me with this problem.
    Thanks,

    Hey i was having this issue also with Adobe Acrobat pro... it only seemed to be affecting one program that produced PDF output automatically. When the processes finished the PDF is supposed to be displayed and instead it would rapidly flash across the screen and close. THen i would have to hunt for the PDF to review its content. I tried a couple of things like deleting my preferences for acrobat C:\Users\[your user name]\AppData\Local\Adobe\Acrobat\10.0. You might have to show hidden files. In the explorer window select Organize-> Folder and search options-> once that opens view -> check show hidden files, folders and drives. then navigate that path above. Make sure adobe is closed then delete everything in there or move it off to another folder if your worried it will break it further.
    That did not fix the problem though. I opened the application and ran my process again same results (adobe closes pdf auttmagically). so i opened adobe acrobat and navigated to Edit -> Preferences -> look under the General tab and click the select default PDF handler and that seemed to fix my problem. I also disabled the enhanced security look further down in that list under security enhanced. then a reboot so it is possible that the enhance security setting was the cause i think i will play with that for a minute to see if it was but i think my issue was the default handling. good luck

  • Easy one: How do I make a .VI close itself without making all other .VI's close?

    I figured this one had been asked before, but I didn't see what I was looking for exactly in the old questions.
    I'm using Labview 6.0.2, and I'm trying to make my main .vi close itself. One way is using the Quit Labview function, but that's a little severe, as someone might be running something else, perhaps, and I don't want to mess up their program.
    I know that you can use other .vi's to close .vi's, but can a .vi close itself? And if so, how?
    Thanks,
    -Dobbs

    Use a property node and wire a false to the Front Panel Window>>Open property
    See if the attached example helps you.
    Brian
    Attachments:
    closeexample.vi ‏16 KB

  • ITunes closes itself

    I have been using iTunes for awhile now and regularly update to the newest version. Within the last few weeks, I have had issues with iTunes. Upon opening the software, more than 70% of the time it will automatically close itself even if it is being used to play a song. It will still appear in the system tray in the bottom right hand corner. When I put the mouse over it is no longer in the tray. It doesn't happen all the time. I have uninstalled and reinstalled the software and the issue is still present.
    Is there a way to remove it from the registry and start fresh? I would very much like to use the software, but this is getting ridiculous. I have the software on three machines and this is the only one with the issue.
    Thanks in advance.
      Windows XP Pro  

    There's a link in that article to another article about updating Windows drivers:
    http://support.apple.com/kb/HT1768?viewlocale=en_US
    wiki on ready boost

  • I just updated the ipad 2 from 3.4.5 to ios 6.1.2 and the reminders app doesnt work. When I press edit, the app closes itself

    I updated to ios 6.1.2 but the new app reminders closes itself when I touch the edit button.
    Does anyone know how to solve this issue?
    thank you very much

    Thank you for your help Texas Mac Man. Not what I wanted to hear. Was hoping it would just update to 6.1.3 it said was available. Thanks again.
    Catzz.

  • Photoshop CS6 closes itself immediately after launching, please help!

    Hi everyone,
    My situation is exactly as the titles says, l launch Photoshop CS6, and the splash logo shows up as normal, and than it will close itself  (as in literally as if l pressed the X button to exit the program; the individual brush windows and such close before shutting down, all of that stuff)
    There are no crash reports, and no error messages.
    l've been looking online extensively for an answer but l've only found other frustrated users with the same/similar problem that don't have a solution.
    l purchased Photoshop along with Illustrator, and inDesign in a bundle, and it is the same situation for those programs too, they close immediately after l launch the program.
    This all happened out of the blue, and l'm not sure what else to do.

    I don't really understand what l have to do. l don't get any activation or connection errors, and l am already signed in with my Adobe ID.
    lt also shows up on my Adobe page too; http://i.imgur.com/eHm6yaU.png
    l think that it is activated, but the programs on my computer don't think it is activated.
    + Edit: l made a new account by accident the other day because l forgot about it, so l'm the same person asking the question by the way.

  • IDVD closes itself at the theme screen

    I just bought a MacBook earlier this week, and everything seems to work fine. Exept for iDVD that is:
    When i start iDVD (7.0.2) for the first time, it starts normal until i try to insert a movie, then iDVD closes itself. When i then try to start iDVD again, it starts normal until the theme screen comes up. I hear the beginning of the menu tune, see the beginning of a theme menu, but then iDVD closes itself. This happens every time now.
    I tried some things i've read like deleting all the iDVD files and start again, or delete the whole thing and instal it again. This works; after a new instal i can start iDVD again until i want to insert a movie (after this same story). So it doesn't work really.
    Does anyone know a solution for my problem? Or maybe something else i can try....? I would really like to use this program.

    The very last line seems to indicate that you may have better luck on a separate user account. Have you already tried this approach? If not, try it.
    Adding a new user account
    You can create individual user accounts for each person who uses your computer. Each new user has a separate home folder and can adjust his or her own preferences without affecting other users.
    Choose Apple menu > System Preferences and click Accounts.
    If some settings are dimmed, click the lock icon and type an administrator name and password.
    Click Add and type the user's name.
    If you don't want to use the short name generated automatically, type a new short name. (Once the account is created, you won't be able to change the short name.)
    Type the user's password in the Password and Verify boxes.
    Type a hint to help the user remember the password if they have trouble remembering it at login.
    Click Parental Controls and select options to determine what the user can do with the computer.
    If you change your mind while you're creating a new user account, click Delete to cancel.
    Hope this helps but if not just come on back.

  • HT1692 When I open calendar on iPad 3 it closes itself in a few seconds

    When I try and open the calendar app on my iPad it closes itself after a few seconds.

    1. Double-click the Home button to close all Inactive Apps in Task Bar
    2. Hold the Apps down for a second or two until you see the minus sign
    3. Tap the minus sign to close App
    4. Tap center of screen to return to Home Screen

  • Browser closes itself - NOKIA 5800XM

    Hello! 
    I want to share the problem with my NOKIA 5800XM and it is that while browsing the pages that have many meanings in this picture is a page with only pictures / galleries / funny and entertaining anybrowser closes itself. 
    I got the settings here but there remains a problem, someone has idya what can solve this horrible problem. 
    I tried with several browser as Opera .... But there is a similar problem, and makes me think that the phone can not work with pages that have many pictures. 
    Best regards.
    Moderator note: Link removed. Pelase note that external links musty be to sites in English (if a non-English site has a translation feature, you can link to a translation of the page).
    Message Edited by michaels on 01-Jun-2009 02:08 PM

    Yes this is really stupid, I hope our colleagues from NOKIA to pay attention to this general bug as soon as possible. 
    I tested a few phone in 5800 the same page and it really has a problem there. 
    I did notice however that when run from java settings error report and then load the same page, enter some mistakes a miracle .... 
    therefore I think there is a problem of their browser-JAVA
    WE need hellp...... 

  • Illustrator CC closes itself

    hi there,
    So i had the creative cloud subscribtion before, for a short time i had to stop and was using the trail for a while
    now the trial is over, and after some attempt to use my brother's trial account with no luck
    i decided to come back to the subscribtion
    now, after i did, i tried to install illustrator,
    now it would just close itself as soon as it opens, with no error or anything
    i have searched for some existed articles, and tried to sign out creative cloud and sign it with prompt that didnt' work
    i even tried adobe tool to clean remove all adobe software and reinstall it again, still no luck
    can anyone help with this? thanks
    EDIT: i'm sure something is trying to close it, as it opens i quicly double click on empty spots to open "open" , and while open window is opened, it stop it from getting closed down.

    Fix the licensing:
    Sign in or activation errors
    Mylenium

  • ITunes closes itself when trying to play TV shows

    When I try to play a TV show, the window goes green and then iTunes stops working and closes itself. Songs all play fine, it seems to be just TV shows. Is there any reason for this? How do I stop it?

    There's a link in that article to another article about updating Windows drivers:
    http://support.apple.com/kb/HT1768?viewlocale=en_US
    wiki on ready boost

  • Elements 11 closes itself

    PC: Windows 7 Home Premium 64bit SP 1, 8 GB RAM, Intel Core I5.
    Windows is fully updated.
    No use of Oganizer for pictures.
    Hi
    I have recently purchased my pc (3 weeks) and started out with installing my Elements 9, but it would only let me edit about 2 - 10 pictures (jpeg) before Elements would close itself.
    Thought it might be a case where Elements 9 couldn't run on a 64bit pc, so upgraded to Elements 11.
    Now I can edit anywhere from 5 - 25 pictures (jpeg) before Elements will close itself.
    Sometimes a Windows dialog window will apear and tell me that Elements stopped working and will be closed, but most of the time Elements simply just closes without any notification.
    I can then try to open the picture again in Elements, but Elements will close itself right away. Only thing that helps is to reboot the computer, and then I can edit a few pictures again before the problem repeats itself.
    I then tried to set Elements up to run in campability mode with Windows XP SP 3, but that didn't help.
    Then I uninstalled Elements and made a reboot, and then reinstall Elements and under installtion choose install as Administrator mode and again choose Windows XP SP 3 compability mode.
    But the problem is still here
    What can I do to make this issue go away ?
    Regards
    Thomas Rithmester
    Denmark

    I finaly found this log from this afternoon, all thoug most of it is in danish:
    Version=1
    EventType=APPCRASH
    EventTime=130101548066424211
    ReportType=2
    Consent=1
    UploadTime=130101548068344321
    ReportIdentifier=6ad553ab-a29e-11e2-897d-446d57c68f3e
    IntegratorReportIdentifier=6ad553aa-a29e-11e2-897d-446d57c68f3e
    Response.BucketId=3205940991
    Response.BucketTable=1
    Response.type=4
    Sig[0].Name=Programnavn
    Sig[0].Value=PhotoshopElementsEditor.exe
    Sig[1].Name=Programversion
    Sig[1].Value=11.0.0.0
    Sig[2].Name=Tidsstempel for program
    Sig[2].Value=505d12ab
    Sig[3].Name=Fejlmodulnavn
    Sig[3].Value=ntdll.dll
    Sig[4].Name=Fejlmodulversion
    Sig[4].Value=6.1.7601.17725
    Sig[5].Name=Tidsstempel for fejlmodul
    Sig[5].Value=4ec49b8f
    Sig[6].Name=Undtagelseskode
    Sig[6].Value=c00000fd
    Sig[7].Name=Undtagelsesforskydning
    Sig[7].Value=00020023
    DynamicSig[1].Name=OS-version
    DynamicSig[1].Value=6.1.7601.2.1.0.768.3
    DynamicSig[2].Name=Landestandard-id
    DynamicSig[2].Value=1030
    UI[2]=C:\Program Files (x86)\Adobe\Photoshop Elements 11\PhotoshopElementsEditor.exe
    UI[3]=Adobe Photoshop Elements 11 er holdt op med at fungere
    UI[4]=Windows kan søge online efter en løsning på problemet.
    UI[5]=Søg efter en løsning på internettet, og luk programmet
    UI[6]=Søg online efter en løsning senere, og luk programmet
    UI[7]=Luk programmet
    State[0].Key=Transport.DoneStage1
    State[0].Value=1
    FriendlyEventName=Handlingen blev afbrudt
    ConsentKey=APPCRASH
    AppName=Adobe Photoshop Elements 11
    AppPath=C:\Program Files (x86)\Adobe\Photoshop Elements 11\PhotoshopElementsEditor.exe

  • Videochat window closes itself during the chat

    I have iChat version 3.1.8 and I still use Mac OS X 10.4.10.
    I wanted to have a videochat with my mother (she uses AIM Messenger on Win XP), but it didn't work.
    The window of the videochat closes itself after less than 5 seconds. Sometimes it's very fast (before I see my mum, sometimes it's after 5 seconds when we could say a half sentence.
    I tried to restart the computer, but the problem is still there.
    The last days I also had trouble with my computer: slow start-up, blocking (even apple-alt-esc didn't work any more) and troubles with iTunes when I click it in my dock, it doesn't jump, it doesn't open, but there is the little black arrow wich means it's activated. Could this have something to do with it?

    Hi
    Do you get an error message with the closing of iCHat?
    Have you done the following?
    iChat>Preferences>Video>Bandwidth limit: None
    System Preferences>Quicktime>Streaming>Streaming speed: 1.5Mbps T1/Intranet/LAN (don't use Automatic)
    Restart iChat
    Has the PC end done its settings up? See http://www.ralphjohnsuk.dsl.pipex.com/page12.html#_Service
    Steve

Maybe you are looking for

  • Single quote used with in text data renders to inalid display

    I have the following text snipit that is coming from an Oracle database column: ...did not include 'special decontamination'. New ... I am putting this into a pretty standard text object.  When the report is previewed and subsequently printed as a PD

  • My pictures application will not open since i got the new ios5 update

    After I updated my Iphone to the new ios5 i can no longer open the pictures app and my phone won't allow me to take or save pictures. The HDR feature ruined my phone and tech is less than helpful with fixing this problem. I have restored, turned off,

  • Error while opening MII login page

    Hello All, When I try to login to MII using http://<server name>/Lighthammer/Menu.jsp,It is going to http://<server name>/Lighthammer/error.jsp and displaying the error "Uanble to build user information for authorization response".I am not able to ev

  • Upgrade to OS4.1 causes fast battery drain with WiFi on

    I've just upgraded the software on my 3G Pod to 4.1, only to find that it has led to a much quicker battery drain with the WiFi on. Is there a fix for this or can I revert to the previous OS?

  • Material Replication problem from SAP ECC to CRM 2007

    I am trying to load material data from SAP to CRM.  Materials are in general coming across however i have a lot of errors visible in smw01 with the following entries: @0A@     BDoc validation error     PRODUCT_MAT     mBDoc Validate     06/04/2010