By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,087 Members | 974 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,087 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.