Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Liveconnect: problem during the init() phase of the applet under IE

Reply
Thread Tools

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

 
 
admin@point52.com
Guest
Posts: n/a
 
      05-24-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vhdl coding for five phase svpwm for 5 phase stepper motor Keerthana Hardware 0 03-24-2012 06:06 AM
object allocation during garbage collection phase George Georgiev Ruby 0 09-25-2008 08:07 AM
Error compiling ruby under AIX 5.3 with GCC during the make phase Victor Reyes Ruby 3 05-03-2008 09:49 PM
4-phase vs. 2-phase handshaking Eli Bendersky VHDL 11 01-22-2008 02:26 PM
A little problem with phase 2. =?ISO-8859-2?Q?Micha=B3_Iwaszko?= Cisco 1 01-09-2006 11:30 AM



Advertisments