I recently "inherited" a project which involves an applet on a web
page, and
some Javascript event handling functions. The handler definition looks
like
this:
<SCRIPT LANGUAGE=javasc ript FOR=Foo EVENT=mouseRele ased>
<!--
Foo_mouseReleas ed();
//-->
</SCRIPT>
where Foo is an applet with parameter FiresScriptEven ts set to TRUE.
The
function Foo_mouseReleas ed() is a simple javascript function that just
alerts
a fixed message so I know it's been called.
When I run this applet in a vanilla IE5.5 or IE6, it does exactly what
I expect - when the mouse is released, up pops my alert. BUT when I
run it on the same browser with Java Plug-In 1.4.2 installed, I don't
see it. Is there some compatibility issue with 1.4.x? Can the code be
changed relatively simply to work with both VMs, or am I looking at a
big rebuild to support browsers both with and without the plug-in?
Thanks a lot,
Julian 2 1928
Java plugin is not from microsoft, I guess thats why its not
supported...
You could call JavaScript from Java using the Netscape package,
which, I thought, was included in Internet Explorer... http://www.rgagnon.com/javadetails/java-0172.html
or you could attempt to use:
getAppletContex t().showDocumen t(
new URL(
"javascript :ale rt('Hello')"));
Greetings,
Vincent
Julian Hayward wrote: I recently "inherited" a project which involves an applet on a web page, and some Javascript event handling functions. The handler definition looks like this:
<SCRIPT LANGUAGE=javasc ript FOR=Foo EVENT=mouseRele ased> <!-- Foo_mouseReleas ed(); //--> </SCRIPT>
where Foo is an applet with parameter FiresScriptEven ts set to TRUE. The function Foo_mouseReleas ed() is a simple javascript function that just alerts a fixed message so I know it's been called.
When I run this applet in a vanilla IE5.5 or IE6, it does exactly what I expect - when the mouse is released, up pops my alert. BUT when I run it on the same browser with Java Plug-In 1.4.2 installed, I don't see it. Is there some compatibility issue with 1.4.x? Can the code be changed relatively simply to work with both VMs, or am I looking at a big rebuild to support browsers both with and without the plug-in?
Thanks a lot,
Julian
Julian Hayward wrote: I recently "inherited" a project which involves an applet on a web page, and some Javascript event handling functions. The handler definition looks like this:
<SCRIPT LANGUAGE=javasc ript FOR=Foo EVENT=mouseRele ased> <!-- Foo_mouseReleas ed(); //--> </SCRIPT>
The syntax <script for event> is basically an IE extension, it is not
supported by other browsers (at least not in general, the latest
Netscape 7.1 release makes some attempts but as far as I know only to
support Window Media Player scripting with Netscape 7.1/Windows).
where Foo is an applet with parameter FiresScriptEven ts set to TRUE.
I have never heard of that parameter, and a search on http://java.sun.com/ doesn't turn up any results. Nor does a search on
msdn.microsoft. com.
Where did you find that parameter, is it one specified for applets run
with the MS JVM?
The function Foo_mouseReleas ed() is a simple javascript function that just alerts a fixed message so I know it's been called.
When I run this applet in a vanilla IE5.5 or IE6, it does exactly what I expect - when the mouse is released, up pops my alert. BUT when I run it on the same browser with Java Plug-In 1.4.2 installed, I don't see it. Is there some compatibility issue with 1.4.x? Can the code be changed relatively simply to work with both VMs, or am I looking at a big rebuild to support browsers both with and without the plug-in?
I would be rather surprised if you can handle events happening inside of
a Java applet with script in the page containing the applet in a cross
browser way. I don't think that works with browsers using the Sun Java
plugin.
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael |
last post by:
Hello
Currently I'm migrating an applet from Java 1.1 to 1.3.
Targetplattform:
Microsoft Internet Explorer 5.x with Sun's Java VM 1.3.1
Problem:
The attached applet works fine with the Microsoft VM. But when I use
Suns' VM the applet hangs after opening the dialog. And you have to
|
by: James Hong |
last post by:
Help please, I try to sending an email from my html page using the java
applet.
but it give error on most of the PC only very few work, what is the error i
make
the java applet show as below
**********************************
package Celcom.Client;
|
by: Larry Martin |
last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO
exception when IE6 tries to load the applet. It seems a lot of others are
getting the same problem but a search of the web did not turn up any sort of
solution. I have tried most of the suggestions but none of them seem to have
helped with the problem.
My error is below and the most significant part of it is the HTTP connection
failure.
load: class...
|
by: DKM |
last post by:
Here are the source code files to a Java applet that utilizes
LiveConnect to communicate with Javascript, and the HTML file.
The thing works both in IE 6.0 and FireFox 1.4. but with some problems.
IE crashes when one refreshes the page or leave the page. This happens
only after calling the Java method more than once. It does not crash if
the Java method is called just once and then the page is refreshed.
FireFox does not crash at all...
|
by: ankur |
last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER
MY HttpChatApplet sccessfully Loaded from ChatDispatch but
running on some another PC HttpChatApplet not loaded
my Coad
ChatDispatch.java
| |
by: shanmukhi |
last post by:
Hi All
I got a problem in running java programs.
i am not able to run java applet while running i got a problem as
Loading Java Applet Failed
java.lang.NoClassDefFoundError: App (wrong name: src/App)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
|
by: dishal |
last post by:
Can anyone help me please? How do I convert these codes to launch from a JFrame instead of a Java Applet?
A simple program where the user can sketch curves and shapes in a
variety of colors on a variety of background colors. The user selects
a drawing color form a pop-up menu at the top of the
applet. If the user clicks "Set Background", the background
color is set to the current drawing color and the drawing
...
|
by: tudyfruity18 |
last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating future investment values. When you click Loan Calculator button, a frame appears in a separate new window for computong loan payments.
Here's my coding:
// Lab3.java:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
...
|
by: Richard Maher |
last post by:
Hi,
Can someone please tell me the strategy(ies) used by Java (the Security
Manager or whatever) to determine if a given IP address conforms to the
definition of the codebase from which an applet was retrieved?
For example, if an Applet was loaded from mycluster.mydomain.com, and
"mycluster" was a cluster alias that was using DNS load-balancing (or
round-robin or a.n.other distribution technique) to distribute client
connections among...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |