473,413 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Liveconnect: problem during the init() phase of the applet under IE

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.

Jul 23 '05 #1
1 1720
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.googlegr oups.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.


Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
1
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...
8
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...
4
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...
6
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...
1
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...
2
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...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.