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.
As it's used in a CMS, it uses liveconnect (javascript interaction)
massively to get the default
values of the styles and the content text from the HTML page.
The problem is that on first page load, the applet doesn't initialize
correctly: the background
color is not always loaded correctly, neither are the text color or
style. It can happen that
the text of one applet is duplicated in another. It even happens that
in place of the content
text, I find the value of the text color (ie. #777777), the value of
the text alignment or
whatever.
Note the this problem occurs under IE exclusively and fades away on
page reload. Firefox, Opera
and Konqueror work just fine.
So at first sight, the problem is due to a bad page loading in IE, so I
placed several sleep()
in the applet init() method: one before each style initialization. I
also tried to delay applet
initialization with JS.
Sadly, it doesn't seem to have any effect.
Does anyone here already encountered this problem ?
Thanks in advance for your help. 1 1733
Can not connect.
None of the "buzzwords" ring a bell.
Sorry. Good luck
-------------------
We don't need no stinking "Conqueror"
Have had enough of this shit.
<ad***@point52. com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . 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.
As it's used in a CMS, it uses liveconnect (javascript interaction) massively to get the default values of the styles and the content text from the HTML page.
The problem is that on first page load, the applet doesn't initialize correctly: the background color is not always loaded correctly, neither are the text color or style. It can happen that the text of one applet is duplicated in another. It even happens that in place of the content text, I find the value of the text color (ie. #777777), the value of the text alignment or whatever.
Note the this problem occurs under IE exclusively and fades away on page reload. Firefox, Opera and Konqueror work just fine.
So at first sight, the problem is due to a bad page loading in IE, so I placed several sleep() in the applet init() method: one before each style initialization. I also tried to delay applet initialization with JS. Sadly, it doesn't seem to have any effect.
Does anyone here already encountered this problem ?
Thanks in advance for your help. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alan Pocklington |
last post by:
Hi,
I've created a Java Applet that allows the user to select a record. As the
user makes the selection, the applet uses LiveConnect (JSObject) to write
the record id to a html field (the name of which is passed in to the applet
as an arg).
This all works fine, but now I have two instances of the same applet
running on a page, both linked to different HTML fields so that making a
selection from applet 1 updates html field 1, a...
|
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: 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: Xela |
last post by:
Hi
I am facing the following problem. I load a fact table with around 25
millons lines, and 7 indexes. I load it with 3 million line subsets. I am on
a quadriprocessor Solaris machine. The loading phase seems quite efficient
and seems to be well parallelized. But the build phase is long and seems to
use only one processor. Very low IO wait occurs during this phase. Is there
something can I do to fasten this process? I guess that if the 4...
|
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: Alexandre Lahure |
last post by:
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
|
by: ValValVal |
last post by:
Hi.
I have an application consisting of some JFrames and threads ,and other classes as well. I developed it as ordinary application, having in mind to re-make it to be applet.
I have launching file with just about one line of code launching Client JFrame.
This launching file itself was just a java application,not a JFrame. I remade it so that it would extend JAppet.
After I run it in NetBeans 6.1 it worked fine with this JApplet.But...
|
by: Shisou |
last post by:
Hey Guys,
I'm currently writing a java applet for my class and I've run into a quirky little problem. I assure you answering this won't be considered cheating in anyway since it's just a bug and not the solution to the assignment.
I have 5 buttons that I need to use at different times in the applet. initially I need to have two on the screen (buttons B1 and B2). so in my init() I have these two added to the applet. Then once either of...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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.
| |