nini9140 / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

loading.html does not work on Chrome #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS:  Linux Mint 12 Lisa x64
Browser:  Google Chrome 17.0
jZebra Version:  1.4.3

Sample file "loading.html" never appends the Java applet.  Putting the browser 
in debug shows that the "appendApplet" is called properly, but the 
"jzebraReady()" function is never called.

After troubleshooting, realized this is caused by a width and height of zero in 
the appendApplet code.

Recommendation is to append the applet with 1px width and 1px height to 
work-around this issue on Google Chrome.

Change:

document.getElementById('applet').innerHTML = '<applet name="' + APPLET_NAME + 
'" code="' + APPLET_CLASS + 
              '" archive="' + APPLET_URL + '" width="0" height="0" mayscript></applet>';

To:

document.getElementById('applet').innerHTML = '<applet name="' + APPLET_NAME + 
'" code="' + APPLET_CLASS + 
              '" archive="' + APPLET_URL + '" width="1px" height="1px" mayscript></applet>';

-Tres

Original issue reported on code.google.com by tres.fin...@gmail.com on 17 Jul 2012 at 2:09

GoogleCodeExporter commented 9 years ago
Resolved with version 1.4.5.

Original comment by tres.fin...@gmail.com on 22 Aug 2012 at 6:03