JSObject.getWindow(this) doesn't work in NN6

Hi,
I'm trying to call JSObject.getWindow(this) method from init() method of an applet. I'm using Netscape 6, win2k, JRE 1.4. When this statement is reached, IE 5.0 works fine, but Netscape (6.0/6.2/7.0) hangs. The CPU usage becomes 100% if I see the task manager/performance. It doesn't even throw any exception. I'm using netscape.javascript.JSObject class. Please help me out.
Deepak Jain

have same problem.
could not be solved, using java version 1.4.2:
Java(TM) Plug-in: Version 1.4.2_01
Verwendung der JRE-Version 1.4.2 Java HotSpot(TM) Client VM
problem exists under
Mozilla 1.0rc2
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020510

Similar Messages

  • JSObject.getWindow(this) returning null under Netscape 7.0

    Hi All
    Hopefully somebody can help me out here. I have an applet that functions under all versions of IE (4.0+) and Netscape 4.x flavour browsers.
    My applet uses Java to JavaScript communication to obtain launch parameters form the page that launched it and to control a Real Player plugin.
    I have just installed Netscape 7.0 and when I make a call to JSObject.getWindow(this) from my applet all I get returmed is null.
    My applet tag contains the mayscript attribute and the mayscript param.
    Has anybody experienced anything similar with Netscape 7.0 or 7.1
    Thanks
    Mark

    Here's my code that works in IE 6.x with the Java Plug-in that comes with NS7.1. In NS7.1 it throws a JSException.
    In applet:
         public void start()
         System.out.println( "Starting applet..." );
         try
              win = JSObject.getWindow(this);               
              win.eval("appletReady = true;"); //Needed for NS 7.1 JAVA Plug-in
              win.eval("showSayHello();");
         catch(Exception e)
              System.out.println( e.toString() );
         public void sayHello()
              win.eval("alert(\"Hello\");");
    In HTML file:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
         <head>
              <title>My Applet</title>
              <script language="JavaScript">
         <!--
              //debugger;
              var app = null;
              var appletReady = false;
              function showSayHello() {          
                   if (appletReady)
                        app = document.getElementById("myApplet");                    
                        app.sayHello();
         // -->
              </script>
         </head>
         <body>
         <applet id="myApplet" name="myApplet" code="myApplet.class" style="LEFT: 0px; WIDTH: 100px; TOP: 0px; HEIGHT: 100px" height="100" archive="myApplet.jar" width="100">
         </applet>
         </body>
    </html>

  • I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn't work. How to solve this problem?

    I Try to open an Indesign document. The message: it is made in a newer version. Go tot CC: Help/Give your Adobe id/Start Indesign again and try to open the document. This doesn’t work. How to solve this problem?

    What version are you running?
    What version was it made with?

  • My Ipad2 won't turn off.  I've tried the reset method,  holding both buttons down for at least 10 seconds, but this doesn't work. I'm on version 5.1.1 and all other functions work except that I cannot get onto the internet via wi-fi either.  Help ??

    My Ipad2 won't turn off.  I have tried the reset method by holding both buttons down for at least 10 seconds, but this doesn't work.  I can't get onto the internet via wi-fi either (don't have a 3G card fitted).  All other functions seem to be working OK including charging. Not had this problem before, but I recently upgraded software to 5.1.1 so is there a bug in there somewhere?

    Look at last link.
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130?tstart=60
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I get an "install failed" message. "Recovery system can't be created-click restart to return to previous version of OS X." This doesn't work. My Mac continues to try to install Mountain Lion. What is the elegant way to get my system back?

    I get an "install failed" message. "Recovery system can't be created—click restart to return to previous version of OS X." This doesn't work. My Mac continues to try to install Mountain Lion. What is the elegant way to get my system back?

    The first time I attempted to install ML was on a late 2011 MBP.  It ran for three minutes then gave me the error message: Could not install OSX due to an unexpected error.  I was using the original ML install app, not a USB or other drive.  
    After a couple of restarts wiht the same result I saw a message to the effect that the install was trying to close open apps.  I closed apps  manually a few times to no avail.  I shut down instead of restarting then booted into Safe mode (hold down the shift key when starting) and that did it.  The install went smoothly after that. 
    I since installed ML in two iMacs using a cloned copy of the install app on a USB drive.  This time I shut down the computers and booted into Safe Mode first and there were no problems. 
    I don't know if this issue is the one causing you these problems but it is a simple enough solution to try.
    Jay

  • I transfered my iWork '09 to my new Mac Air. Now my Keynote won't open. I get message, "An unexpected error has occurred, please quit and reopen Keynote." This doesn't work.

    I transfered my iWork '09 to my new Mac Air. Now my Keynote won't open. I get message, "An unexpected error has occurred, please quit and reopen Keynote." This doesn't work.

    so Keynote still isnt working after installing, I thought you had it sorted from your last post.
    If you have not done so remove any files relating to iWork and Keynote and reinstall iWork
    files that must go are:
    the iWork ’09 folder from the main HD > Applications;
    the iWork ’09 folder in HD > Library > Application Support
    the individual iWork application plist files found in HD > Users > (your account) > Library >
    There are a number of free application removal tools  that will do this for you:
    trashme       webpage
    apptrap        webpage
    appcleaner   webpage

  • When I use Mail and want to paste an emailadress with a right mouse click in the adres field this doesn't work, ofcourse cmd V  works. How can I solve this

    when I use Mail and want to paste an emailadress with a right mouse click in the adres field this doesn't work, ofcourse cmd V  works. How can I solve this

    YAY!  That did it.
    Thank you so much.
    And a Very Happy and Prosperous New Year to you!
    bonnie

  • Confused as to why this doesn't work...

    I wrote this code correctly, but it doesn't seem to work. I'm not sure if I'm leaving something out or not using something correctly. If anyone can tell me why this doesn't work, it would be greatly appreciated!
    P.S. in the actionPerformed method, I want to put the window to close once someone clicks an "ok" button. How is this done? I've tried using setDefaultCloseOperation(3), but it doesn't seem to work.
    peace,
    Mark
    //?2002 Copyright. MJA Technologies.  All Rights Reserved.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class About extends JFrame implements ActionListener
        JTextArea textarea;
        JPanel panel1;
        JButton okbutton;
        String output;
        public About()
            super("Pages");
            Container container = getContentPane();
            textarea = new JTextArea();
            textarea.setText("Pages 1.0 beta 0\n?2002 MJA Technologies.\nAll Rights Reserved.");
            container.add(textarea);
            setDefaultCloseOperation( 3);
            setVisible(true);
            setSize(400, 300);
        public void actionPerformed(ActionEvent event)
            if(event.getSource() == okbutton)

    Oh see, you said this:
    "P.S. in the actionPerformed method, I want to put the window to close once someone clicks an "ok" button. How is this done? I've tried using setDefaultCloseOperation(3), but it doesn't seem to work."
    so I said this:
    "setVisible(false)"
    NOOOOOOOOOOOW you say the TextArea doesn't show up...that's a whole other problem.
    Jeeeeeeeeeeeeeeeez.
    So what layout manager are you using in the container? (hint hint)

  • TS1702 How do I hide purchased apps with iOS 6? With iOS 5 you can swipe the unwanted app to hide it, but this doesn't work with iOS 6.

    How can I hide an app from the list of purchased apps using iOS6? With iOS 5 you can swipe the icon to display a red Hide icon, but this doesn't work with iOS 6. Suggestions (that work) will be appreciated.

    Yes. On a computer. Not ios6.
    On iTunes on your computer under purchased, select the x on the top corner. That will hide them.

  • Using her PC whilst in VNC mode. Control-Alt-Delete is the request but this doesn't work. Any clues?

    Using my iMac, I'm trying to log onto another PC at a remote location whilst in VNC mode. Control-Alt-Delete is the request, but this doesn't work. Any clues??

    Thanks, great work... I think that's where I was headed!

  • Both Google and Yahoo accounts have a box which says "Stay Signed In", but this doesn't work. Why

    Both Google and Yahoo accounts have a box which says "Stay Signed In", but this doesn't work. Why?
    When I try to go to these accounts, they continue to ask me to provide Username and Password, but I've checked the "Stay Signed In" box each time.

    Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    * http://kb.mozillazine.org/Cookies

  • HT1589 This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?

    This doesn't work in Windows 8. Anybody know how to get this dialog box in Windows 8?

    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.

  • 'this' doesn't work with static main declaration

    Hi!
    Is it normal that the class instance accessor 'this' doesn't work when using the public static void main method? When yes, can somebody explain why?
    Marc
    example:
    public class JavaTest
    static String hello = "Hello world";
    public static void main(String args[])
    System.out.println("hello before modifying:" + hello);
    changeData(hello);
    System.out.println("hello afterwards:" + hello);
    public static void changeData(String hello)
    // here comes the error
    this.hello = "Hello Luxembourg";

    Can you tell me why 'this' does not work here, Dmitri
    S.?According to "The Java Language Specification",
    "keyword this may be used only in the body of an instance method, instance
    initializer or constructor, or in the initializer of an instance variable of a class. If it
    appears anywhere else, a compile-time error occurs."
    You've tried to use it in static method which may be executed when there is no instances of that class (as it happens in your code) and does not correspond to any particular instance of the class while "this" means "this class instance".

  • Hİ My ipad's screen is black. When it  take charge, I can hear sound but still black. I press and hold both the sleep and home buttons for about 10 to 15 seconds but this doesn't work. Screen still black! PLS HELP ME!


    My ipad's screen is black. When it  take charge, I can hear sound but still black. I press and hold both the sleep and home buttons for about 10 to 15 seconds but this doesn't work. Screen still black! PLS HELP ME!

    How long did you let it charge? It may take 30 minutes before the iPad responds when the battery is completely drained. Let it charge for at least 30 minute using the wall charger. Then rest the iPad. Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.
    If the iPad restarts let it continue to charge until the battery is 100%.
    If the iPad still does not start make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • TS1702 Can anyone help? For no reason, I cannot open any of my apps.  I can open everything else, just not apps.  I have turned the ipad on and off several times, this doesn't work.  Does anyone know what to do and why this has happened?

    Hello, for some strange reason I cannot open any of the apps I have.  I have tried turning the ipad on and off and this doesn't work.  I can open everything else (videos, camera, etc) just no apps.  Can anyone help please?

    If it's the apps that you've downloaded from the App Store, but not the Apple built-in ones, then try downloading any free app from the store (as that appears to reset something) and then re-try them - the free app can then be deleted.
    If it's all apps including Apple's then try closing them all completely and then see if they work when you re-open them : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

Maybe you are looking for

  • MY HARD DRIVES WONT MOUNT, HELP

    I recently bought the Lacie 250 gig fire 400 (I also have a 160 gig porche hard drive) and it worked for awhile. But a few weeks ago when I turned my computer on the hard drive would not mount. I took my computer to the mac store and the tech tested

  • Skipping Pages in a PWB Smartform

    Hi All,      I have created one application form and a related smart form. The name of the Application Form is IS_U_CA_INSTPLAN. This, when run in mass run,  is executed for a few number of times based on certain conditions. My associted smart form i

  • Here's a goodie - anyone know how to use Skype and...

    I would like to be able to do a tour guide for a Filipino friend of mine that is living in the Cayman Islands.  I want to be able to talk to her through skype as usual but be able to control her Google maps from my screen here in the US.  I would lik

  • Where do I find my downloaded items

    I am new to mac computers so please bare with me. I downloaded microsft office free trial to my computer but i cant seem to find where its at on my computer. when i click on the pages section it is there but when i click on it, it starts downloading

  • Layer disappear

    I am facing some problem while using wizard and layers. There are 2 layers and each has a graph and a table in it. What I want to do is that when the user presses a button in one layer, the contents of that layer should disappear and the contents of