Works great in Firefox, crashes IE6 on 3 different Windows

Hello,
At work we are looking to purchase a mainframe terminal emulator applet which gathers parameters through JavaScript.
Some of these parameters are sensitive, and we wish to keep them hidden, particularly from doing "View Source" in the web page.
I tried to demo a technique using two applets on the same page: one applet will "set" an INPUT TYPE="HIDDEN" value and the other will "get" the (sensitive) JavaScript values
and use them.
To control the order, the first applet writes the second applet's <APPLET> tag dynamically.
The technique works great using the 1.5 plugin in Firefox on Windows ME, Windows XP Pro SP2 and Windows 2000 Server. It also crashes badly Internet Explorer 6 on the same machines, as soon as you try to launch the second applet.
Hang, freeze for 5 minutes, CTR-ALT-DELETE. Pretty bad.
I tried recompiling with javac -source 1.4 and get the same.
I tried recompiling with javac -source 1.3 and get the same.
Below is the complete code (one HTML file and two applets). You can also download the compiled project with source at:
http://www.quadmore.com/applet2/applet2.zip
We control our environments, but need to use IE. Any fix or workaround would be greatly appreciated.
Thanks!
Bert
(begin JSjava.java)
import java.applet.*;
import java.awt.event.*;
import java.awt.*;
import netscape.javascript.*;
public class JSjava extends Applet implements ActionListener
     Button b1;
     TextField tfuser;
     TextField tfpass;
     JSObject win;
     public void init()
          setLayout(new FlowLayout());
          tfuser = new TextField(10);
          tfpass = new TextField(10);
          b1 = new Button("vers la page web");
          b1.addActionListener(this);
          add(tfuser);
          add(tfpass);
          add(b1);
     public void actionPerformed(ActionEvent ae)
          if (ae.getSource() == b1)
               // send TO FORM
               JSObject win = (JSObject)JSObject.getWindow(this);
               JSObject outputLabel;
               win.eval("setHTMLInputTextUser('"+tfuser.getText()+"');");
               win.eval("setHTMLInputTextPassword('"+tfpass.getText()+"');");
               //lancer le deuxi�me applet ici
               try
                    outputLabel = (JSObject) win.eval("document.getElementById('lblOutputText')");
                    outputLabel.setMember("innerHTML","<APPLET NAME=JS2 CODE=JSjavatwo.class MAYSCRIPT WIDTH=200 HEIGTH=200></APPLET>");
               catch(Exception e)
                    e.printStackTrace();
(end JSjava.java)
(begin test.html)
<html>
<head>
     <SCRIPT>
          var s;
          var s2;
          function getHTMLInputTextUser()
               return window.document.dynamic_hidden_values.secretusername.value;
          function setHTMLInputTextUser(s)
               window.document.dynamic_hidden_values.secretusername.value = s;
          function getHTMLInputTextPassword()
               return window.document.dynamic_hidden_values.secretpassword.value;
          function setHTMLInputTextPassword(s2)
               window.document.dynamic_hidden_values.secretpassword.value = s2;
          function showHiddenValues()
               alert('The user name is...' + window.document.dynamic_hidden_values.secretusername.value + ' and the password is...' + window.document.dynamic_hidden_values.secretpassword.value);
     </SCRIPT>
</head>
<body>
     <form name="dynamic_hidden_values" method="post">
          <input type="hidden" name="secretusername" value="">
          <input type="hidden" name="secretpassword" value="">
          <input type="button" value="Show the current values" onClick='showHiddenValues();'>
     </form>
     <APPLET NAME="JS" CODE="JSjava.class" MAYSCRIPT WIDTH="200" HEIGTH="200"></APPLET>
     <div id="lblOutputText">�</div>
</body>
</html>
(end test.html)
(begin JSjavatwo.java)
import java.applet.*;
import java.awt.event.*;
import java.awt.*;
import netscape.javascript.*;
public class JSjavatwo extends Applet implements ActionListener
     Button b2;
     TextField tfuser;
     TextField tfpass;
     JSObject win;
     public void init()
          setLayout(new FlowLayout());
          tfuser = new TextField(10);
          tfpass = new TextField(10);
          b2 = new Button("de la page web");
          b2.addActionListener(this);
          add(tfuser);
          add(tfpass);
          add(b2);
     public void actionPerformed(ActionEvent ae)
          if (ae.getSource() == b2)
               // receive FROM FORM
               JSObject win = (JSObject)JSObject.getWindow(this);
               tfuser.setText((String)win.eval("getHTMLInputTextUser();"));
               tfpass.setText((String)win.eval("getHTMLInputTextPassword();"));
(begin JSjavatwo.java)

There is a mention in the "Core Java" Vol.1 book by Cay Horstmann that 2 applets from the same codebase can communicate with each other, but this is not a good solution for us as one of the applets will be purchased.
It has also been suggested that sub-classing the purchased applet might be possible, but of course that would be a no-cab-do if the inheritance was flagged as "final".

Similar Messages

  • I use hd simplepass identity protection which works great with firefox 3.6 but firefox 4 does not recognize so i had to uninstall 4 and reinstall 3.6 what do i do to make simplepass work with firefox 4

    I use hd simplepass identity protection which works great with firefox 3.6. I updated to firefox 4 and when I tried to use simplepass to log into my bookmarked account firefox gave an error message. I had to uninstall firefox 4 and reinstall 3.6 and now I am able to use simplepass again

    The company that make the bioscanner for HP have abandoned it. For more details see https://support.mozilla.com/en-US/questions/799388

  • Website works great in firefox, blank in IE

    first i am very new to html code. so this could be a very
    dumb problem.
    i created an html that has a tab spry. nothing else out of
    the ordinary. i previewed in Firefox while building it, worked
    great. checked browser compatibility, Dreamweaver showed nothing
    wrong. IE loads page, no errors, but is completely blank.
    someone please help :)
    here is a link to the
    website

    unclosed html comment wrapping around a style statement.
    <!--
    .style1 {
    font-family: "Futura Lt BT";
    font-size: 14px;
    body, td, th {
    font-family: Futura Lt BT;
    .style2 {font-family: "Futura Lt BT"}
    .style3 {font-size: 12px}
    .style6 {
    font-size: 14px;
    font-weight: bold;
    .style8 {font-size: 12px; font-weight: bold; }
    </style>
    </head>
    change the end of that to
    .style8 {font-size: 12px; font-weight: bold; }
    -- >
    </style>
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How come IE works fine while Firefox crashes and hangs constantly

    IE works fine while Firefox opensn 1 web page then hangs, crashes when trying to access "source", does not render Windows Media Player content, update to 3.6.9 hangs in eternal download mode, then frazzles, on Windows XP with AMD processor and Firefox 3.6.8.

    Your plugins list in the system details doesn't show the WMP plugin.<br />
    You need to install the WMP plugin for Firefox if you want to see embedded WMP content.
    See:
    [[Using the Windows Media Player plugin with Firefox]]
    http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
    See http://kb.mozillazine.org/Software_Update (Software Update not working properly)<br />
    Remove the files in the updates and updates\0 folder:
    C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates
    (%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates)
    C:\Program Files\Mozilla Firefox\updates
    Download a fresh copy of Firefox ( http://www.mozilla.com/firefox/all.html ) and do a reinstall of Firefox over the top of the current version.
    If that still causes the same problem then do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.

  • Firefox crashed even before the browser window is shown

    Immediately after I double clicked the icon, it immediately showed crash reporter dialog.. I don't even see the browser window to try the safemode.
    I uninstalled and resinstalled. Still crashed.

    Hello josat2013. The cause of this could be a corrupted user profile in Firefox, which if I remember right is not removed by the uninstaller.
    Could you try and see if creating a new profile works?
    I am going to assume you use Windows 7 for the walkthrough. While on your desktop, click the start menu and write '''firefox.exe -profilemanager'''. Unless Firefox crashes while doing this, it should show a small window with the name of the current Firefox profiles on your system, usually it is named ''#randomcharacters#.default''. On the left hand side you should see a button called '''New Profile''', click this and follow the instructions where you specify the name and etc.
    After you have finished the instructions you should see that there is a new profile in the list with the name you specified. Highlight this one and choose click on '''Choose Firefox'''. If the Firefox window appears without crashing, then the cause is that corrupted profile.
    To transfer all your files and settings to the new profile, follow the instructions on this webpage: http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Good luck and hope it works out! :)

  • Firefox crashes upon opening, and randomly - Windows XP.

    What I'm experiencing is that FireFox crashes upon most start-ups. it also crashes randomly. Be it known, it has been doing this in safemode, too. It has been doing this before any plugins were installed, and it has been doing it since FireFox 12 or FireFox 13.
    Oddly enough, my folder for where the crash reports SHOULD go is completely empty.
    Current version: 22.0
    What should I do from here?

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Firefox crashes if multiple tabs or windows are open.

    Since I updated to Firefox 29 I have got the following problem: if I have a longer session and I open more and more tabs and windows (e.g. 30 tabs in 2 windows, so not that much...), Firefox crashes. I haven't had that problem before. So I also reset my whole profile and started with a clean one, but the problem is still the same.
    (Crash ID: eg. bp-0833c256-71df-494b-89d0-78b572140522)
    Thank you very much in advance!

    Hey cor-el,
    first of all thank you very much for your reply. I did all the steps you listed and I also went through the support sites. Actually, disabling the protected mode in Flash resulted in a slight performance improvement (at least I think it did). But unfortunately, the crashes still occur.
    Just a few minutes ago I had a very typical crash. ID: bp-70ad21db-8de1-43b9-892c-246a02140523
    I figured out some details: there are some sites that make it more likely that a crash will occur. E.g. one of these websites is www.chip.de
    Memory usage can go up to 1300MB, CPU about 50%.
    The website then usually turn black (see pic 1). If I go over some elements with the mouse, some of them might turn visible again (see pic 2). I tried to reproduce this (by opening some sites of chip.de) and made to screenshots.
    Perhaps this helps to identify the problem.
    It would be really great if you had any other advice for me.
    Best
    Moritz

  • Firefox crashes when opening a new window

    Firefox opens normally and runs properly -- until I close all its windows. When zero windows are present, and I return to Firefox and ask for a new window, Firefox hangs. To resolve the problem I must Force Quit the app, which generates a crash report to Apple. Occasionally Firefox has crashed on its own and generated a crash report to Mozilla, but this is rare. I have tried disabling all add-ons, but that had no effect.
    As long as there is at least one Firefox window open, the app functions normally. This problem only occurs when going from zero windows to one window.

    Try to repair the disk permissions:
    *http://thexlab.com/faqs/repairprocess.html
    Try to remove the Firefox plist file (org.mozilla.firefox.plist).
    *http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results
    Go to "~/Library/Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist)
    You can also check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Firefox crashes when tabs closed & popup windows closed

    When I try to operate a program through a pop up window, Firefox crashes. When I try to close a tab, Firefox crashes. This has only begun happening since the weekend when it updated to the newest version. I have tried uninstalling/reinstalling with no change in the results. This happens regardless of what website I go on. I have submitted crash reports every time it happens, so you should have a record somewhere. Please help!

    Submitted Crash Reports
    Report ID Date Submitted
    <pre><nowiki>bp-35c09533-b4f2-4595-ad62-cae612130116 1/16/2013 10:00 AM
    bp-d3c61272-5d96-4548-8d4f-d95b42130116 1/15/2013 7:47 PM
    bp-cb15e849-39f1-4ba8-a245-c00842130116 1/15/2013 7:44 PM
    bp-2ea5ce08-24e4-47f7-b96a-a20932130116 1/15/2013 7:32 PM
    bp-e559de98-f10d-4019-b721-31e5e2130116 1/15/2013 7:32 PM
    bp-82743207-27e1-4fb2-ad4a-d0bd32130116 1/15/2013 7:20 PM
    bp-76af1232-47fa-46aa-b8fb-330f32130116 1/15/2013 7:20 PM
    bp-c555b0ba-6d74-4b32-94b8-b03d92130115 1/14/2013 7:57 PM
    bp-c65cb85f-bfed-4a90-8f43-e60002130114 1/14/2013 1:15 PM
    bp-4aef862f-feaf-4a78-9f62-f800b2130114 1/14/2013 9:23 AM
    bp-406a6fb0-084f-47f2-84ca-6bc8c2130114 1/14/2013 9:07 AM
    bp-d0a37fed-4fa7-4378-8db0-9817a2130114 1/14/2013 8:30 AM
    bp-8ce046f3-f580-4c7f-bc13-42b6c2130113 1/13/2013 2:15 PM
    bp-35535693-0b91-4ee2-b9af-2d1d32130113 1/13/2013 2:10 PM
    bp-4fdab5f4-d1a6-4bd3-9a75-4ae2b2130113 1/13/2013 1:51 PM
    bp-ed58339f-dbc0-419f-9977-f8f0f2130113 1/13/2013 1:37 PM
    bp-59686c98-7a9a-4f60-a618-480e92130113 1/13/2013 1:36 PM
    bp-8d75c77c-9ec4-4429-93cf-b7a6c2130113 1/13/2013 1:36 PM
    bp-b2a0afd7-8a4c-47f8-a988-31cdc2130113 1/13/2013 1:35 PM
    bp-2b07e1bb-1b6f-4fee-9f03-81f602130113 1/12/2013 8:45 PM
    bp-d06854a5-c51f-48e1-9d77-343552130112 1/12/2013 6:10 PM
    bp-8ba3dc92-e68b-4271-8691-69d352130112 1/12/2013 6:07 PM
    bp-a9b24f3e-32f1-4c18-ae7c-5f6352130112 1/12/2013 6:06 PM
    8772895c-e5af-45bc-818e-1dae73ca1bb1 1/5/2013 2:12 PM
    a2d05c71-8d9b-4176-92a5-434327528654 1/5/2013 2:12 PM
    bp-24eec25d-fb1d-4504-bacb-9a7202130104 1/4/2013 10:37 AM
    d2fe0cd2-1209-4352-9db2-7a50500bcfec 1/4/2013 10:37 AM
    d59796f1-5438-49d5-b46f-55299c962a31 1/3/2013 10:51 AM
    b23fb0e1-5e04-40ff-b599-1f59aee22614 1/3/2013 10:51 AM
    bp-58d1a05a-4ff8-4f08-848d-43d6f2130103 1/3/2013 10:50 AM
    2883623f-a110-4f1e-9bea-08d67854e526 1/3/2013 10:43 AM
    bp-83e803a8-6e95-4393-ba76-8da242121129 11/29/2012 5:39 PM</nowiki></pre>
    These are all the crash report IDs. Many of them do have bp at the front. How can I fix this? I disabled the Norton toolbar, but still having problems. I do not want to disable Norton, leaving my comp. at risk.
    Thanks for your quick reply!
    Vera

  • I dl'd Firefox 4, was working great but, Firefox 4 is unable to work w/ Netflix. I hit the Netflix restart in 32-bit mode and now Firefox 4 will not open on my MacPro. I have to "Force Quit". What's the problem?

    I dl'd Firefox 4 on wide release Tuesday. It was working just fine on all news sites I use. Then, I tried to use my Netflix streaming. Netflix alerted me FF4 needed to run in 32-bit mode due to its movie player plug-in. I hit the Netflix restart in 32-bit button, FF4 crashed. I've since re-dl'd FF4 and loaded it into the Apps folder on my MacPro(Mac OS 1.6.7/2.66 Quad-core/2 GB RAM/256MB GPU). It still won't open and I have to "Force Quit". Several "Reports" have been sent to Apple but, I don't think Apple is the problem. As it now stands, I can only run last version of FF on my MacPro.
    I also have a MacBook(Mac OS 10.6.7/2.16 C2D/1 GB RAM/64 MB GPU) and I am able to have 2 versions of FF on that Mac. I even have the newest version labeled as Firefox4, so as to distinguish between the 2 for the purpose of using FF4 for everything but Netflix. So, what happened? What's the difference? Why won't FF4 run on my MacPro anymore?

    If this were just a Netflix problem, why can I access Netflix through Internet Explorer and not through Firefox? I've been using Firefox to access Netflix for at least the past year and starting yesterday (12/6/11) Firefox doesn't seem to recognize that Netflix exists. I've tried the suggested Firefox "help" which was of no help whatsoever and may even have made life more difficult in accessing other accounts. Anyone know how to contact Netflix or Firefox by phone?

  • Firefox will not open, extentions updated, tried older versions, had worked before but quit. goog chrome and explorer work great but firefox bombed any thoughts

    Windows 7 ultimate, this program worked fine for the last 5 months and all of a sudden just quit. I erased and put on earlier versions all have same outcome. Click on icon and just looks like time clock just spins. No program opens but says program is open.

    hello, could you attribute it to any change / update that was applied? some security software like zonealarm could create problems after a firefox update when sandboxing is enabled, see [[Firefox won't start - find solutions]]
    also in some cases this behaviour can be caused by malware, so please do a full scan of your system with the security software already in place and possibly with a different tool too.
    [[Troubleshoot Firefox issues caused by malware]]

  • Firefox crashing when printing large webpage Windows 7

    I have a fairly complex HTML document that is generated from a 3rd party application. It is approximately 100 pages of A4 at least.
    When generated on a Windows 7 machine, the HTML is generated fine and opens in Firefox 16.0.2 as expected. However, when the user goes to print to a network printer, the status bar hangs at around 10% and Firefox stops responding. Eventually, after around 7 minutes, the crash dialogue box appears.
    There is no appreciable spike in memory usage whilst this is going on. The document generates and prints fine on Windows XP machines.

    Does Firefox still crash in a new profile?
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes

  • Firefox crashes on every startup on Windows 7 64-bit version.

    I have a Toshiba pen-based tablet PC where I have the 64-bit version of Windows 7 installed. I get the following information. I can't look at the about:crashes since Firefox won't start.

    Ok I think I know the reason for this.
    Toshiba provides a password plugin with their finger print manager software. After I updated my laptop with the finger print manager, Firefox stopped working, like described above.
    Solution is pretty easy:
    1) Boot firefox in safe-mode
    2) Go into Tools->Add Ons->Extensions
    3) Hit disable on the 'Automatic password input in FX 1.0' extension
    4) Restart firefox in normal mode

  • Firefox crashes when I have multiple windows or tabs open

    I am running windows 7 home premium on a HP (HPE-170f ).
    Firefox hangs and then crashes on a regular basis when I multiple tabs and or windows open. When it asks to send a report, it usually tells me that there was an error in submission so the crash reports listed below are far from the only ones.
    When I restart Firefox, my history is lost. I just went through your articles and I changed me startup to: show my windows from last time. Hopefully that will help the history problem but...What about the constant crashes?
    Thanks for the help!

    This can be a problem with OOPP (Out-Of-Process-Plugins)
    See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins

  • I have a iMac destop 10.6.2 and use the AOL Mail web site with your Firefox Browser. It has worked great for years. I update the firefox to 6.1 and now I cannot send images using the Firefox browser. With Safari browser it works fine.

    I use AOL mail - http://www.aol.com/ with my Firefox 6.1 browser. Before updating aol mail worked great with firefox for years. Now when I try to send ( upload) messages with a file or images I always get the reading " there was a technical problem and I should try again". Messages with NO files or images go through just fine. I have cleared the Firefox history, the cache and cookies and the problem remained the same. The question is does this problem have something to do with the latest update ? AOL are still only familar with the 3.6 Firefox versions. Thanks

    Well I guess I was too optimistic. Since last posting I have had three hang events, one during reboot. When the login dialog box came up I clicked on it and it hung.
    However I do have a new data point. I have enabled the remote login (sshd). I have discovered that when the system hangs like I described above, I can still log in via SSH from my Windows system. The shell appears normal, but when I tried a "killall Safari" command the OS crashed hard. After a hard reset, the system hung during the login process. Again I could login remotely, and that time I executed a "sudo reboot" via the remote session. That cleared the display to all-blue but did not successfully reboot.
    Can anyone suggest what to try via the remote login to help diagnose what is happening? I am familiar with typical Linux architecture but the differences in Mac OS X are leaving me a bit disoriented.

Maybe you are looking for

  • How to Avoid Special Characters in string

    Hai. I want only Alphabets & Digits to be entered in to my string.No any other special characters except spaces.How can I do this?  Solved! Go to Solution.

  • IMovie wont open a saved library

    I saved my iMovie project onto USB from iMovie version 10.0.4 I took it to University to work on it, but the iMovie available is 10.0.1 It won't let me open the project I'm working on because apparently it's an 'older' version. I don't understand why

  • Can't get my Microsfot word to work with 10.8.4

    I can't use my Microsoft programs since upgrading to IOS 10.8.4. Is there another product that replaces Word for Mac users. Or is there a way to upgrade what I have already?

  • Character set problem with db link

    Hello, I'm accessing a DB2 database through a database link (ODBC) and I'm getting this error: ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity Using ODBC]DRV_GetRows: DB_ODBC_ENGINE(1125): ; [IBM]

  • IPhone 5s screen is flickering after trying to update to iOS 7.1.2

    I have an iPhone 5s about a year old. Today I started an update to iOS 7.1.2. The first issue was that it froze on the white screen with the black logo and the progress bar. For about 30 minutes it was stuck on 50% progress. It was at this point that