Hi all,
The facts : a rich text editing applet, a HTML/Javascript toolbar and
Liveconnect to make them communicate alltogether.
- Java to JS communication (for updating the state of the toolbar -
text align, style, color) is OK
- JS to Java communication (for changing text align, style, color)
doesn't work as expected :
* Under Firefox, the first call of a Java method is DAMN SLOW (near 20
minutes !). The following calls are OK (1 to 2 seconds). Here is the
output of the Java console (the following message is displayed more
than a thousand times) :
liveconnect: javascript: calling Java system code
liveconnect: javascript: default security policy = file://
* Here is the output of the Java console under Opera :
com.opera.Origi nNotAllowedExce ption: LiveConnect origin check failed
for JavaScript trying to access Java object,
caller=file://localhost/home/user/RichTextEditor. html,
callee=file:/home/user/RichTextEditor. jar
at
com.opera.LiveC onnectPrivilege dActions.origin Check(LiveConne ctPrivilegedAct ions.java:99)
at
com.opera.LiveC onnectPrivilege dActions.invoke (LiveConnectPri vilegedActions. java:37)
at com.opera.Invoc ationThread.run (MethodResolver .java:379)
* Under IE and Konqueror, it seems OK
Thank you for your answers 1 2136
Alexandre Lahure wrote: * Under Firefox, the first call of a Java method is DAMN SLOW (near 20 minutes !).
Starting up the Java VM is damn slow (but certainly takes rather 20
seconds maybe, not 20 minutes). Although if you have an applet on the
page then it should already have started the Java VM.
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Guillaume CABANAC |
last post by:
Hi folks,
Is liveconnect still available in Firefox as it is in NS Navigator ?
I would like to call Java code from JavaScript in Firefox... Do you
think it is possible with liveconnect ? Does a better strategy exists ?
I tried to call Java from Javascript like this :
var myBook = new Packages.Book() ;
|
by: admin |
last post by:
Hi all,
I wrote a small text editor (using a JTextPane) in order to ease the
use of a CMS, in a more
WYSIWYG way. Basically, you can see directly the effect of setting the
background color, the
text color, bold/italic/underlined styles and so on... You can have
several applet on one page
as there is one applet per column and per language.
|
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: j_macaroni |
last post by:
I am trying to communicate back to my web page using LiveConnect. I
just installed JDK5 Netbeans and have created a few applets. I have
even called the applets from Javascript. However when I use the import
line below it doesnt find the library.
I looked for jaws.jar but its not under the Java directory. Does anyone
know where it is? Do I have to download it?
import netscape.javascript.*;
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |