Javascript to Plug-in communication in Netscape 6

I have a JApplet that display properly in Netscape 6 (thanks to the embed tag) using the Sun plug-in 1.3.1_01a.
But I cannot control it via Javascript.
I've read here http://java.sun.com/products/plugin/1.3/docs/script.html that
"This mechanism permits applets to be accessed from Javascript within Internet Explorer. Unfortunately the current Netscape Plug-in APIs do not permit scripting of Plug-ins within Netscape Navigator. However Sun and Netscape are working together to implement a new interface ("OJI") that will permit full scripting of Java Plug-in in future releases of Netscape Navigator."
It is dated from April 2001.
Does anybody knows if there is a solution now ?

Your answer really confuses me.
My applet is encapsulated in an OBJECT tag if the browser is IE, or an EMBED tag if the browser is NS. The applet has a public SetText() method.
The problem appears when I invoke Applet's method using JavaScript, like this:
javascript:document.applets[0].SetText()
It works fine with IE. And not with NS (although the applet displays properply in both cases).
What confuses me is this:
"Netscape 6.x uses the APPLET tag" : I've tried the JavaScript:
javascript:alert(document.applets.length)
it says "0" ...
And with
javascript:alert(document.embeds.length)
it says "1"...
So I think NS uses the EMBED tag, not the APPLET tag.
I'm using NS 6.2 and IE6 both with Sun plugin 1.3.1_01a
Should I disable the plugin in NS so that it uses the APPLET tag?
And also what is this "seamless Win32 plugin from Sun" that I've never heard of ?

Similar Messages

  • Javascript - plug-in communication causes Netscape 6.2 crash sometimes.

    Hi,
    I am using netscape 6.2, Jre1.3.1 with <Applet> tag.
    The page has a 'done' button and a java applet plug-in. When 'done' button is clicked, javascript would call the applet's method to get some data.
    Function works fine for the first time. But if I repeat click 'done' --> close page --> reload page for a couple of times, netscape browser crashes without any information.
    Anyone has an idea about it?
    Any help will be appreciated.

    Hi
    I am having a similar issue. The first time round netscape functions fine with no problems. If I relaunch (without shutting all NS 6.2 instances down) the NS 6.2 crashes (when doing some JS). All NS 6.2 windows disappear. No NS error dialog or Java exceptions occur.
    I did notice that static variables held there previous values so the applet is not destroyed, i.e. still stored in memory eventhough the destroy method is being called.
    Did you ever resolve this issue?
    Can anyone help?
    Richard
    [email protected]

  • Safari won't open because of Javascript Core plug-in?

    So Safari was working just fine earlier today for me, but all of a sudden whenever I try to open it I keep getting an error, "Safari quit unexpectedly while using the Javascript Core plug-in." Anyone happen to know why this began happening all of a sudden, and how to fix it?
    Here's the log of the error.
    5/8/14 7:56:14.290 PM ReportCrash[5095]: Saved crash report for Safari[5093] version 7.0.3 (9537.75.14) to /Users/Me/Library/Logs/DiagnosticReports/Safari_2014-05-08-195614_CBR-iMac.cras h

    I updated to Mavericks a few days ago. Today I did the recommended updates in the App Store and now Safari won't start - same error message as Cevan7. Any help would be greatly appreciated - thanks in advance!
    Alan
    2014-09-13 3:59:18.777 PM ReportCrash[506]: Saved crash report for Safari[495] version 7.0.6 (9537.78.2) to /Users/Alan/Library/Logs/DiagnosticReports/Safari_2014-09-13-155918_xxxxxx-MacB ook-Pro.crash
    User Diagnostic Report:
    Process:         Safari [3165]
    Path: /Applications/Safari.app/Contents/MacOS/Safari
    Identifier:      com.apple.Safari
    Responsible:     Safari [3165]
    PlugIn Path: /System/Library/StagedFrameworks/Safari/JavaScriptCore.framework/Versions/A/Jav aScriptCore
    --> __TEXT 0000000102d0e000-0000000103086000 [ 3552K] r-x/rwx SM=COW /System/Library/StagedFrameworks/Safari/JavaScriptCore.framework/Versions/A/Jav aScriptCore
    __DATA 0000000103086000-00000001030a0000 [ 104K] rw-/rwx SM=COW /System/Library/StagedFrameworks/Safari/JavaScriptCore.framework/Versions/A/Jav aScriptCore
    4 com.apple.Safari.framework       0x00007fff8f106104 Safari::SearchProvidersController::sortSearchProviders(***::Vector<***::RefPtr< Safari::SearchProvider>, 0ul, ***::CrashOnOverflow>&, NSString*) + 82
    5 com.apple.Safari.framework       0x00007fff8f10987a Safari::SearchProvidersController::parseProvidersFromManifest(Safari::CF::Dicti onary const&, ***::Vector<***::RefPtr<Safari::SearchProvider>, 0ul, ***::CrashOnOverflow>&, Safari::SearchProvider const*&, int&) + 576
    6 com.apple.Safari.framework       0x00007fff8f105fbc Safari::SearchProvidersController::loadAllProviders(Safari::CF::URL const&) + 120
    7 com.apple.Safari.framework       0x00007fff8f105e9d Safari::SearchProvidersController::SearchProvidersController() + 123
    8 com.apple.Safari.framework       0x00007fff8f105dee Safari::SearchProvidersController::shared() + 46
    9 com.apple.Safari.framework       0x00007fff8ef845ce -[BrowserWindowControllerMac _defaultSearchProviderDisplayName] + 11
    10 com.apple.Safari.framework      0x00007fff8ef766f1 -[BrowserWindowControllerMac unifiedFieldPlaceholderString] + 65
    11 com.apple.Safari.framework      0x00007fff8ef84657 -[BrowserWindowControllerMac _updateSearchFieldProviderText] + 61
    12 com.apple.Safari.framework      0x00007fff8ef84d90 -[BrowserWindowControllerMac _setUpLocationBar] + 203
    13 com.apple.Safari.framework      0x00007fff8ef74610 -[BrowserWindowControllerMac windowDidLoad] + 907
    15 com.apple.Safari.framework      0x00007fff8f1a6c13 -[WindowController _windowDidLoad] + 43
    17 com.apple.Safari.framework      0x00007fff8ef74c9a -[BrowserWindowControllerMac showWindow:] + 50
    19 com.apple.Safari.framework      0x00007fff8ef4300b -[BrowserDocument showWindows] + 39
    22 com.apple.Safari.framework      0x00007fff8eeb4fa3 -[AppController applicationOpenUntitledFile:] + 22
    38 com.apple.Safari.framework      0x00007fff8ef07d00 -[BrowserApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 161
    41 com.apple.Safari.framework      0x00007fff8f0d9c8d SafariMain + 267
    0x102d02000 - 0x102d02ffd  com.apple.Safari (7.0.6 - 9537.78.2) <91D289A2-9E2F-3197-A702-06B527DC7918> /Applications/Safari.app/Contents/MacOS/Safari
    0x102d0e000 - 0x103085ff6 com.apple.JavaScriptCore (9537 - 9537.78.1) <B105E4F8-5964-39A6-A09C-3897339EEE6E> /System/Library/StagedFrameworks/Safari/JavaScriptCore.framework/Versions/A/Jav aScriptCore
    0x103182000 - 0x1032b8ff5  com.apple.WebKit (9537 - 9537.78.2) <AE0AAF97-AA56-3817-AA30-A0B7A766F0B9> /System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/WebKit
    0x1033ac000 -        0x10359dffc  com.apple.WebKit2 (9537 - 9537.78.2) <353EC5AA-8F73-3B6D-9E2F-0B34C69302BF> /System/Library/StagedFrameworks/Safari/WebKit2.framework/Versions/A/WebKit2
    0x103787000 - 0x1045dbff7  com.apple.WebCore (9537 - 9537.78.1) <C3CDA458-0ADC-3D71-887C-1E093211D177> /System/Library/StagedFrameworks/Safari/WebCore.framework/Versions/A/WebCore
    0x106a4a000 - 0x106a4bffc com.apple.SafariServices.framework (9537 - 9537.78.2) <6424BDFF-E8C3-3A1E-91E3-62B67CA8210B> /System/Library/PrivateFrameworks/SafariServices.framework/Versions/A/SafariSer vices
    0x7fff8a909000 - 0x7fff8a909fff com.apple.SafariDAVNotifier (1.1.1 - 1) <6FD70177-7044-3EFE-905F-08F1D2D40ECA> /System/Library/PrivateFrameworks/BookmarkDAV.framework/Versions/A/Frameworks/S afariDAVNotifier.framework/Versions/A/SafariDAVNotifier
    0x7fff8eeab000 - 0x7fff8f3b1ffb com.apple.Safari.framework (9537 - 9537.77.4) <4DA7F240-5451-3C23-9ADA-CFE34FB51FDB> /System/Library/PrivateFrameworks/Safari.framework/Versions/A/Safari

  • AdobePDF Plug-in for Firefox & Netscape 10.0.1 won't update for me

    I check my plug-ins almost daily. Adobe Acrobat needed to update. I have never had trouble before with this.
    It's Adobe PDF Plug-in for Firefox and Netscape 10.0.1 that won't update. Thing is the Adobe Manger came on and it looked like it was done and in my Add-ons box it's there but the plug-in on my Firefox plug-in page says it's outdated. I tried to install it several times and the Adobe Manger downloads but site still says it's outdated. My Adobe Reader X works fine though. Maybe this is something I don't have to worry about but I don't know. So, I'm asking for some help.
    Also, even though this didn't update correctly, when I did update the first time it brought along a new plug-in called getPlusPlus for Adobe 162103, at first I disabled it in my add-0n/plug-in box but I read that this helps Adobe Reader and I enabled it. But the Plug-in box remains grey and says unknown. So, should I disable it?
    Thanks for any help you can give me.
    Sincerely,
    Debbie

    No, it won't interfere with your Adobe Reader X as it is only the problem with the plug-in. Your Adobe Reader X will still function normally. You should receive a notice from Adobe in your PC to notify you there's an update waiting to be installed, if you have chosen to be notified:
    Open Adobe Reader X > Edit > Preference > Updater and choose whatever option you prefer.
    Or you can also check for update periodically at Help > Check for Updates

  • How to get image properties in PDF using javascript or plug ins

    Hi
    How to get the image(all the images) properties in PDF using javascript or suggest plug ins
    Thanks in Advance

    HI,
    In the PDF Edit API's ( as has already been suggested) there is the PDEImage and using this you should be able to find out everything you need to know about any image in a PDF file.
    I would recommend starting with PDEImageGetAttrs
    Hope this helps
    Malcolm

  • Plug-ins for older Netscape.

    Hi !
    Is anyone still using Netscape 4.7, if so, what JAVA plug-ins r u using to load servlets coded in j2sdk140_01 ?
    MS-IE will happily accept j2re140 but the JAVA Plug-in Control Panel only caters for Netscape 6 !

    Hi !
    I am talking about the applets on the web server, and not about the servlet in the container !
    Now that I fixed up MS-IE, Netscape 4.7 is playing up again and "Bad major version number" is making a come-back along with "ClassFormatError" and its bollocky cousins.
    I have yet to get both MS-IE 5.0 and Netscape 4.7 to work at the same time. Its either one or the other and yes, I do realise I am a few versions behind...
    However I take your point : I will be using another machine and upgrade all these (very) old versions to the latest ( bar beta) and see what happens. Should be interesting if nothing else...

  • JavaScript Calendar Popup 2.0 with Netscape 6.2

    The JavaScript Calendar Popup 2.0 doesn't work with netscape 6.2. Once u press any button on the popup, it goes in infinite loop. Anybody knows solution to that.

    Sundeep: both MM-to-CCM and CCM-to-MM integration is standard as of ECC 6.0.
    Check the following documentation (talks more about MM-to-CCM, but there's some info on Catalog-to-MM):
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/46/b596e138a941ce9fba8fc8533674ee/frameset.htm">Integration of Web-Based Catalogs in Purchasing</a>
    Cheers,
    Serguei

  • Pass arguments to javascript from plug in...

    Hi,
    I m using InDesign CS3 on MAC OS...
    I have a plugin calling a javascript. I need to pass a string value from the plug in to the script...
    I found that there is a parameter in the method RunFile in IScriptRunner.h for this purpose... But i don kno how to use this...
    virtual ErrorCode    RunFile(const IDFile& idFile, IScriptEventData* data,  bool16 showErrorAlert = kTrue, bool16 invokeDebugger = kFalse) = 0;
    where,
    @param data is used to pass arguments and return the result IN/OUT
    What does this  IScriptEventData* data carry???
    How to pass a string value as argument to javascript from plugin code and how to retrieve and use it there...
    Is there any sample code for this?
    Someone pls guide me...
    Thank you.

    Are there other command line options with extendscript, like compile to jsxbin etc.. Where is this documented?
    UDevp wrote:
    I used the below command to run script from command prompt, I'm able to run the script but not able to pass arguments to the script.
       "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS4\ExtendScript Toolkit.exe" -run "C:\Program Files\Adobe\Adobe InDesign CS4\Scripts\test.jsx"
    Any suggestion would be helpful..
    It may be possible to edit prefs file with command line and to check file in script.

  • No javascript when plug ins are disabled?

    testing alternative content for a flash site in safari 3.1.1 I disabled the plug ins in safari.... but no alternative content based on a javascript command was shown ? same script works for other browsers. does anybody know if javascript is disabled if plug ins are disabled ? should not be like that ...
    thanx for brief answer ...

    Here are some suggestions for getting the best results from this site.
    Create a user profile that accurately reflects the type of hardware you're using and your version of OS X, or include that information in your first message.
    Give details of the problem. A remark such as "X doesn't work" conveys no useful information. If X did work, you wouldn't be here. Instead, you should post something like this: "I did A; I expected B; but I got C." Include the complete, verbatim text of any error messages you saw, and specify where you saw them: in an application window, a CrashReporter window, a log, or whatever.
    Also describe the steps you’ve taken yourself, if any, to try to resolve the issue. If the problem is of recent origin, did you make any changes to your setup just before you first noticed it? Is the problem reproducible or intermittent? That is, does it always manifest itself when you take a certain action, or only at unpredictable times?
    Before posting, ask yourself whether it’s likely that you are the the only person ever to have had this problem. If not, search the discussions for answered questions similar to yours. If you found any pertinent information, but it didn't help, give details.
    If asking about third-party software, specify the full product name, what it does, the source (website, App Store, etc.), and the version.

  • Adobe PDF Plug-In for Firefox & Netscape 9.5.0 not installing

    Win 7/ FIrefox 10/ Chrome 17/ IE 9 (All current)
    I've asked this on other support sites, not getting THE answer. Be easier if I could copy/paste here, but here goes.
    I download the title plug-in to my download file. Once I click on run, nothing happens, I wait 15-45 minutes, then retry to install. I get a pop-up window says "Only a single instance of this application can run at a time:" I am not getting a download progress window.
    I have also attempted using Revo Uninstaller Pro to install it, same results.
    I have disabled my virus blocker during this process also.
    And I have followed the Adobe direct download link, but it will only let me select my OS, and language, not the version.
    Close down everything start from scratch same thing. I have tried right clicking on the download, exiting browser & running as an administrator, same results.
    I get the feeling, since the initial download is so brief that it is not really downloading, but what do I know.

    Hi Jeff,
    Thanks
    I have narrowed it down to; I have the current Adobe Reader installed. Firefox Plug-in checker is telling me that it is vulnerable & needs updating. I have no idea why. I have posted it on their forum page, but haven't received any replies, I posted it yesterday. Still if you have any info that might be helpful, since I am flying by the seat of my pants, I would appreciate it. I like to drive a car-don't know how to mechanic on one.
    Ken

  • Adobe PDF Plug-in for Firefox & Netscape ''9.4.1'' was causing unresponsive problems on my browser and I had to disable it . Is there anything I can do about this?

    I was getting an unresponsive script warning on most web pages, but more persistent on Windows Live telling me to stop script or continue. I could view the pages by doing both and the only way i could stop the warnings from appearing was to disable the Adobe PDF Plug-in. Increasing the time for the script to run didn't seem to work either. It was taking too long for the pages to load and Firefox used to hang.
    After disabling the plug-in it stopped doing it.
    Does disabling it effect my browser in any other way?

    Hello Vivek,
    I have learned I do have the latest Adobe Reader installed and that the plug-in is included in that download & install. So apparently the problem lies with the Firefox plug-in checker.
    I did the ALT + H, while in FF, & deleted the file, retried update, using the Firefox Plug-in Checker w/same results.
    Then I exited FF, did the Windows key + R typed in %APPDATA% & located it then deleted it, and now wouldn't you know the Plug-In Checker is not working, (We've encountered an error. Please try your request again later.)
    Just gave it another shot & it's working . But still no joy, same results, showing the plug-in needs updating - being outdated version.

  • COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!

    COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
    US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
    To forum visitors:
    I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
    If your advice resolves the problem, I'll forward the payment to your postal address (include your
    address with your reply, and also your email address)
    I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
    The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
    (It is a very effective bitmap display and editing utility)
    To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
    I understand the basic syntax for referencing the applet:
    document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
    Please can you recommend the correct Javascript syntax to achieve communication with the applet.
    Thank you for your kind assistance.
    JM Graham
    [email protected]
    The Java source code for the applet: EasyFilter.class
    # Easy Filter - E.B/JavaZOOM 1999 #
    # Contact: [email protected] #
    # http://javazoom.hypermart.net #
    /* Originally compiled from EasyFilter.java */
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.applet.Applet;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.image.MemoryImageSource;
    import java.awt.image.PixelGrabber;
    import java.util.Vector;
    public synchronized class EasyFilter extends Applet implements KeyListener
    private String paramFileName;
    private Color bgColor;
    private Color fgColor;
    private Color parColor;
    private Color sepColor;
    private Color titleColor;
    private Color helpColor;
    private int WinWidth;
    private int WinHeight;
    private String title;
    private String logoFileName;
    private String originalImageFileName;
    private String filteredCaption;
    private String originalCaption;
    private Vector paramsName;
    private Vector paramsValue;
    private Vector paramsComment;
    private Panel panelParameters[];
    private Label labelParameters[];
    private TextField textFieldParameters[];
    private Label labelComments[];
    private int nbParameters;
    private ScrollPane scrollPaneParams;
    private Panel panelParams;
    private Image theLogo;
    private Image theOriginalImage;
    private Image theFilteredImage;
    private int theOriginalPixelArray[];
    private int logoWidth;
    private int logoHeight;
    private int imageWidth;
    private int imageHeight;
    private drawCanvas canvasTitle;
    private Panel panelTitle;
    private Label labelTitle;
    private Panel panelImages;
    private Panel panelOriginalImage;
    private drawCanvas canvasOriginalImage;
    private Label labelOriginalImage;
    private Panel panelFilteredImage;
    private drawCanvas canvasFilteredImage;
    private Label labelFilteredImage;
    private Panel panelHelp;
    private Label labelHelp;
    private int Yspc;
    private FilterImplementation theFilter;
    public void init()
    String string = null;
    string = appletInitialize();
    setBackground(bgColor);
    if (string != null)
    removeAll();
    setBackground(Color.white);
    setForeground(Color.black);
    Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
    Panel panel = new Panel();
    panel.add(label);
    add(panel);
    setLayout(new FlowLayout(1, 5, Yspc));
    public void keyPressed(KeyEvent keyEvent)
    panelHelp.removeAll();
    boolean flag = true;
    if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
    for (int i = 0; i < nbParameters; )
    try
    paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
    i++;
    catch (NumberFormatException e)
    labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
    flag = false;
    break;
    if (flag == 1)
    labelHelp.setText(" .... Running, please wait .... ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    theFilter.updateParameters(paramsValue);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    canvasFilteredImage.repaint();
    panelHelp.removeAll();
    labelHelp.setText("- Done -");
    else
    labelHelp.setText("- Press Enter to run the Filter -");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    public void keyReleased(KeyEvent keyEvent)
    public void keyTyped(KeyEvent keyEvent)
    private String appletInitialize()
    WinWidth = size().width;
    WinHeight = size().height;
    if (getParameter("bgcolor") == null)
    bgColor = new Color(0, 0, 40);
    else
    bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
    if (getParameter("fgcolor") == null)
    fgColor = new Color(255, 255, 255);
    else
    fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
    if (getParameter("sepcolor") == null)
    sepColor = new Color(158, 128, 128);
    else
    sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
    if (getParameter("parcolor") == null)
    parColor = new Color(24, 24, 24);
    else
    parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
    if (getParameter("titlecolor") == null)
    titleColor = new Color(255, 255, 0);
    else
    titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
    if (getParameter("helpcolor") == null)
    helpColor = new Color(0, 255, 255);
    else
    helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
    paramsName = new Vector();
    paramsValue = new Vector();
    paramsComment = new Vector();
    paramFileName = getParameter("paramfile");
    String string = readParams(paramFileName);
    if (string != null)
    return string;
    MediaTracker mediaTracker = new MediaTracker(this);
    theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
    mediaTracker.addImage(theOriginalImage, 0);
    if (logoFileName != null)
    theLogo = getImage(getDocumentBase(), logoFileName);
    mediaTracker.addImage(theLogo, 1);
    try
    mediaTracker.waitForAll();
    catch (InterruptedException e1)
    return "Error while loading image";
    if (mediaTracker.isErrorAny())
    return "Error while loading image";
    if (logoFileName != null)
    logoWidth = theLogo.getWidth(this);
    logoHeight = theLogo.getHeight(this);
    imageWidth = theOriginalImage.getWidth(this);
    imageHeight = theOriginalImage.getHeight(this);
    theOriginalPixelArray = new int[imageWidth * imageHeight];
    PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
    try
    pixelGrabber.grabPixels();
    panelTitle = new Panel();
    canvasTitle = new drawCanvas();
    labelTitle = new Label();
    panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelTitle);
    panelTitle.setBackground(bgColor);
    panelTitle.add(canvasTitle);
    canvasTitle.setImage(theLogo);
    canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
    labelTitle.setText(title);
    catch (InterruptedException e2)
    return "Internal Error, Try RELOAD !";
    if (title != null)
    panelTitle.add(labelTitle);
    labelTitle.setForeground(titleColor);
    labelTitle.setFont(new Font("Dialog", 1, 14));
    panelImages = new Panel();
    panelOriginalImage = new Panel();
    canvasOriginalImage = new drawCanvas();
    labelOriginalImage = new Label();
    panelFilteredImage = new Panel();
    canvasFilteredImage = new drawCanvas();
    labelFilteredImage = new Label();
    panelImages.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelImages);
    panelImages.setBackground(bgColor);
    panelOriginalImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelOriginalImage);
    panelOriginalImage.setBackground(Color.black);
    panelOriginalImage.add("Center", canvasOriginalImage);
    canvasOriginalImage.setImage(theOriginalImage);
    canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
    labelOriginalImage.setText(originalCaption);
    labelOriginalImage.setAlignment(1);
    panelOriginalImage.add("South", labelOriginalImage);
    labelOriginalImage.setBackground(Color.lightGray);
    labelOriginalImage.setForeground(Color.black);
    labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
    panelFilteredImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelFilteredImage);
    panelFilteredImage.setBackground(Color.black);
    panelFilteredImage.add("Center", canvasFilteredImage);
    theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    labelFilteredImage.setText(filteredCaption);
    labelFilteredImage.setAlignment(1);
    panelFilteredImage.add("South", labelFilteredImage);
    labelFilteredImage.setBackground(Color.lightGray);
    labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
    scrollPaneParams = new ScrollPane(0);
    panelParams = new Panel();
    nbParameters = paramsName.size();
    int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
    if (i < Yspc + 2 + 24)
    i = Yspc + 2 + 24;
    scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
    panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
    scrollPaneParams.add(panelParams);
    panelParams.setBackground(sepColor);
    panelParameters = new Panel[nbParameters];
    labelParameters = new Label[nbParameters];
    textFieldParameters = new TextField[nbParameters];
    labelComments = new Label[nbParameters];
    for (int j = 0; j < nbParameters; j++)
    panelParameters[j] = new Panel();
    panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
    panelParams.add(panelParameters[j]);
    panelParameters[j].setBackground(parColor);
    labelParameters[j] = new Label();
    labelParameters[j].setText((String)paramsName.elementAt(j));
    panelParameters[j].add(labelParameters[j]);
    labelParameters[j].setForeground(fgColor);
    labelParameters[j].setFont(new Font("Dialog", 1, 12));
    textFieldParameters[j] = new TextField(8);
    textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
    panelParameters[j].add(textFieldParameters[j]);
    textFieldParameters[j].setBackground(fgColor);
    textFieldParameters[j].addKeyListener(this);
    labelComments[j] = new Label();
    labelComments[j].setText((String)paramsComment.elementAt(j));
    panelParameters[j].add(labelComments[j]);
    labelComments[j].setForeground(fgColor);
    add(scrollPaneParams);
    panelHelp = new Panel();
    labelHelp = new Label();
    panelHelp.setLayout(new FlowLayout(1, 5, 0));
    add(panelHelp);
    panelHelp.setBackground(bgColor);
    labelHelp.setText(" Change colour values and press enter ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    labelHelp.setForeground(helpColor);
    return null;
    private String readParams(String string1)
    Object object1;
    String string2;
    if (string1 == null)
    return "Filename of filter's parameters needed";
    try
    URL uRL = new URL(getDocumentBase(), string1);
    URLConnection uRLConnection = uRL.openConnection();
    uRLConnection.setDoInput(true);
    uRLConnection.setUseCaches(false);
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
    string2 = null;
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    if (bufferedReader != null)
    Object object2;
    try
    for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
    string2 = extractFormat(object2);
    catch ()
    string2 = object2.getMessage();
    finally
    bufferedReader.close();
    if (string2 != null)
    return string2;
    else
    return null;
    private String extractFormat(String string1)
    if (string1.length() == 0)
    return null;
    int i = 0;
    int j = string1.indexOf(" ", i);
    if (j == -1)
    return "Bad format error (space missing)";
    String string2 = string1.substring(i, j);
    if (string2.equals("TITLE"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    title = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    originalCaption = string1.substring(i, j);
    return null;
    if (string2.equals("FILTEREDCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    filteredCaption = string1.substring(i, j);
    return null;
    if (string2.equals("LOGO"))
    i = j + 1;
    j = string1.length();
    logoFileName = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALIMAGE"))
    i = j + 1;
    j = string1.length();
    originalImageFileName = string1.substring(i, j);
    return null;
    if (!string2.equals("PARAM"))
    return null;
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    paramsName.addElement(string1.substring(i, j));
    i = j + 2;
    j = string1.indexOf(32, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    try
    paramsValue.addElement(new Double(string1.substring(i, j)));
    j = string1.indexOf(34, i);
    catch (NumberFormatException e)
    return "Bad format in a PARAM line";
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    paramsComment.addElement(string1.substring(i, j));
    return null;
    public EasyFilter()
    logoHeight = 33;
    Yspc = 5;

    Addition to my above submission
    To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
    JMGRAHAM

  • Invoking Applet methods from Javascript for Netscape 6

    Hi,
    I am trying to invoke an applet method from javascript, but it is failing with Netscape 6 browser:
    I am doing it the following way-
    function test(form)
    var i = document.myapplet.getname();
    where myapplet is the name of the applet and getname is a method within the applet. This is
    working with Ie but not with netscape 6.
    I would appreciate it if someone could tell me how should I invoke the applet method for netscape browsers.
    Thanks.
    Jay Srin.

    Not working with NS 6 - and will not i guess till they upgrade to Mozilla Version 1.0 - Live Connect is not implemented 100% correct yet - if you want you can download the 7.0 Pre Release Netscape - since its using mozilla 1.0 it should work , see :
    http://forum.java.sun.com/thread.jsp?forum=30&thread=272975

  • JRE and Netscape???

    Hi there
    I am having quite a problem with a java chat not working with Netscape and it doesn't matter what version I try.
    I am not the developer of this chat, I just design and hire out for the backend work. My programmers are telling me that this is a Netscape problem and not theirs .. I spoke with Netscape today for over an hour and they say it is not a Netscape problem but the chat programming.
    Since I am not a technical person I don't know who to listen to!!
    I am not even sure what info to provide you with here so that someone can give some advice .. but can get whatever answers are needed.
    You can see this chat in operation at www.personalstoday.com and you can log in as user test pass 4220 into any neighbourhood.
    The applet starts and works fine with IE but with Netscape it just continuously asks for the plug in and never seems to find it.
    Any help would sure be appreciated!!
    Have a great night
    Wen

    Hi,
    You can see this chat in operation at
    www.personalstoday.com and you can log in as user test
    pass 4220 into any neighbourhood.
    The applet starts and works fine with IE but with
    Netscape it just continuously asks for the plug in and
    never seems to find it.I tried logging into your chat using Mozilla 1.2 which is
    about the same as Netscape 7. I am able to reproduce your
    problem to this extent: Your page prompts me to install the
    1.3 plug-in, even though I already have it installed. I
    cannot get your applet to load.
    I suspect that there is an error in the Javascript that
    supports the plug-in. For Netscape, you should ultimately
    use EMBED tags. I am not sure which set of EMBED tags
    actually gets enforced in my situation. I did notice that
    in one case you have
    <EMBED type="application/x-java-applet;version=1.1" ...
    Maybe it should be "1.3"?
    Your Javascript is very complicated and I don't know how to
    interpret it. The debugging approach would be to create a
    set of simple versions targeted to each situation that the
    Javascript is trying to distinguish. That might help isolate
    which block of code is broken or is not being invoked in
    the right circumstance.
    I have an applet based on the 1.3 plug-in which works fine on
    my system. Maybe you could see what I am doing differently?
    http://www.thecia.net/users/hamilton/minemaster/
    (The applet is the button "Play Minemaster" in the upper left
    corner; pushing it should pop up a frame. The appearance of
    the button is enough to know that the applet loaded.)
    That's all I have to suggest.
    Good luck!

  • LiveConnect: Javascript toJava ? Urgent

    Hello,
    Does anyone know how to get LiveConnect to work? I an using IE.6, and I am hoping it is not an abandoned technolog resident to Nescape Navigator. It is suppose to enable bi-directional communication between Java and Javascript.
    Please see:
    http://devedge.netscape.com/library/manuals/2000/javascript/1.3/guide/lc.html
    I can't get it to work. I am sure my browser is both Java and Javascript enabled. I want to use it to access my JavaBeans without having to waste time sending a request just to check if a username and password are valid.
    Please, if anyone has any experience with this, please share what you know. It is quite urgent.
    Darren

    Hello tolmank,
    Did you read the article at the end of the link I posted.
    I can't get their example to work - I downloaded their classes and added them to my classpath but no joy. I suspected LiveConnect only worked on NN.3 but I read several articles which suggested otherwise. Also at Microsoft.com (either the faqs or knowledgebase), they mentioned some similar functionalty for JScript with IE in response to LiveConnect - they made a reference to some sample code in the 'Microsoft SDK for Java'. I can't find it, or any documentation which makes me wonder if it is an adandoned technology. I have gone from Netscape to Microsoft to Sun, and back. With the added fact of Microsoft and Sun are playing handbags, I seem to have hit a dead-end.
    I have completed my project using Session and HttpRequest to pass Javascript to Java in the traditional manner.
    It would have been nice tho to have a little pop-up alert tell my users they entered their username or password incorrectly (powered by a small query to the database) - it seems ideal for form verification - saves time going round in html loops.
    What do you think tolmank?
    If anyone has any input, or some sample code it would be appreciated.
    Regards, Darren

Maybe you are looking for