Iframe over applet flickering - java

I am using a iFrame to show content over my Applet in my online game.
It work's perfectly in Safari, Chrome, Firefox, Opera etc. But as always not in Internet Explorer on Windows.
When the iframe opens over the applet, the content become to "Flickering"/"Blinking" like the applet is updating a lot, which it doesn't.
What can i do? I am using this:
<applet id="applet" code="main.AvatarClient.class" archive="qqqqqAvatarClient.jar" name="Chat" width="760" height="582" scriptable="true" MAYSCRIPT="true" >
<param name="cache_option" value="YES" / >
<param name="localization" value="locDK/" />
<param name="userName" value="<?=$user?>" />
<param name="password" value="<?=$pass?>" />
And the overlay where iframe is:
<div class="add-block qw no-rounded-borders" id="wo" style="position:absolute;left:756px;margin-top:-30px;z-index:99999999999999999999999999999999999999999999999999999999999999;height:380px;width:495px;display:none;">
<iframe id="my" src="loading.php" frameborder="0" height="380" width="496" scrolling="no" style="z-index:9999999999999999999999999999999999;position:absolute"></iframe>
</div>

Related

Running an applet - Blocked by Security

Basically, what I am trying to do is run an applet.
I made applet, tested it (offline, from Eclipse), exported .jar file and posted on dropbox.com. Then I made simple hmtl which should run that applet.
However I can't get pass the Java security (keep getting "Application Blocked by Java Security" error), even after adding dropbox to "Exception Site List" in Java Control Panel.
<!DOCTYPE html>
<html>
<head>
<title>
My Title v3.0
</title>
</head>
<body>
<object width="480" height="360" data="MyNumber.jar" type="application/x-java-applet">
<param name="codebase" value="https://www.dropbox.com/s/mz6y145mwdtge7r/MyNumber.jar?dl=0" />
<param name="code" value="mynumber.online.MyNumberOnline />
<param name="width" value="480" />
<param name="height" value="360" />
<param name="archive" value="MyNumber.jar" />
</object>
</body>
</html>
Is there a way to get past this?
You have to sign this applet with a certificate as the dialog says "identified by a certificate".

JUpload combine with codeigniter

does anyone tried JUpload java applet with codeigniter?
this is my views
<h1 align="center">JUpload PHP Sample Page</h1>
<div align="center">
<APPLET
CODE="wjhk.jupload2.JUploadApplet"
NAME="JUpload"
ARCHIVE="../../../../jar/wjhk.jupload.jar"
WIDTH="640"
HEIGHT="300"
MAYSCRIPT="true"
ALT="The java pugin must be installed.">
<param name="postURL" value="ftp://username:password#host:21/testupload" />
<param name="ftpCreateDirectoryStructure" value="true" />
<param name="showLogWindow" value="onError">
<param name="afterUploadURL" value="javascript:alert('Upload done');">
<param name="debugLevel" value="99">
<param name="showStatusBar" value="True">
<param name="maxFileSize" value="25000000">
<param name="maxChunkSize" value="25000000">
<param name="httpUploadParameterType" value="iteration">
<param name="nbFilesPerRequest" value="100">
<param name="stringUploadSuccess" value="SUCCESS">
<param name="stringUploadWarning" value="WARNING">
<param name="stringUploadError" value="ERROR">
Java 1.5 or higher plugin required.
</APPLET>
</div>
but I have no luck to post my ftp, the error says:
java.lang.SecurityException: java.lang.SecurityException in JUploadPanelImpl.doStartUpload()
before I try with codeigniter, I try with pure PHP and it worked. Please help me how to combine this JUpload with codeigniter
Thank you
First of all, check for bad credentials (username,password).
If that's not the cause then my guess would be that your server doesn't allow remote access to ftp.
Configure your server for proper access.

transparency webView

I am trying to make my background webView transparent like that :
webView.setBackgroundColor(0x00000000);
but it doesn't work and if I add this line everything is transparent(I don't see my html page) :
webView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
I read that some times there is a problem when this android:hardwareAccelerated="true" is in the manifest, but I don't have this line.
HTML :
<BODY style=\"padding:0;margin:0;\">
<div style="padding:0;margin:0;background:transparent;border:none;position:relative;cursor:pointer;overflow:hidden;height:165px;">
<object ggnoclick ggswfcid name="fo_GGUID" id="fo_GGUID" width="100%" height="165" data="http://c.gumgum.com/ads/com/cesar/big_dogs/cesar_250x100_01.swf?modalURL=GGUID" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="transparent" background="transparent" style="background:transparent;">
<param name="AllowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
</object>
</div>
</BODY>
myWebView.setBackgroundColor(0);
This works for my case.I use android 2.2.
See that same topic in This Link

applet not cache in client

I have a scanner applet with size about 2m and takes too long to load and when I enable console I found this error many times:
Cache entry not found
[url: 10.32.0.19/digital/script/scanner.jar, version: 1.0.0.0]
Then I search and find some questions that not solve my problem.
This is my html:
<object classid="java:com.openkm.applet.Scanner"
type="application/x-java-applet"
archive="scanner.jar"
codebase="10.32.0.19/script/"
height="3" width="5"
name="applet">
<param name="archive" value= "scanner.jar"/>
<PARAM NAME="cache_archive" VALUE="scanner.jar">
<PARAM NAME="cache_version" VALUE="1.0.0.0">
<param name="mayscript" value="true" />
<param name="scriptable" value="true" />
<PARAM name="codebase" value="10.32.0.19/script/">
<param name="path" value="10.32.0.19/scan/responder"/>
<param name="token" value="<?php echo $this->sid ?>"/>
<param name="cotag" value="1">
<param name="action" value="entery" />
<param name="lang" value="en_EN" />
<center>
<img src="/path/to/images/chemwriter_logo.png" />
<p><strong>ChemWriter content requires Java 1.4.2 or higher, which your browser does not appear to have.</strong></p>
<p>Get the latest Java Plug-in.</p>
</center>
</object>
Cache setting in Java preferences is enabled.
I try with Mozilla Firefox 15 on Windows XP.
How to solve this error?
This is probably a server configuration issue.
Q: Do you have any control over the server?
Q: Can you modify the "mime-type" of ".jar" files to application/java-archive?
There is no "probable" here (unless you did not provide correct logs and setup details) - it is sever side problem. Server setup or applet build seems to be incorrect looking for cached version in (what looks like) incorrect and definitely unconfigured directory.

launching java applet

As far as I can see from the documentation, <applet> is deprecated, and the <object> tag is the preferred method for launching an applet now. But I can't find decent documentation, or even a tutorial on how to use the object tag to launch an applet.
I did see the following question which shows how in javascript but I would prefer to use a tag
launch applet from web page
I need to know how to specify the java engine, how to specify a jar file, where it's stored, and how to specify the class that is executed.
Here's what i have at the moment (but does not work)
<object
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="800" height="600" data="pi.jar">
<param name="code" value="PiLauncher.class"/>
</object>
the claim was in the Oracle 1.5 docs that this classid specifies "the current java engine" but this is completely opaque to me. They also had examples requesting a specific version.
Even if this is true, how do I:
specify the jar file
specify the class (is this correct above)
specify the directory where the code is (is codebase still valid?)
First of all, the syntax is not the same for firefox and IE:
Firefox:
<object classid="clsid:CAFEEFAC-0017-0000-0000-ABCDEFFEDCBA" id="appletId" name="appletName" width="400" height="300">
<param name="code" value="com.myPackage.Applet" />
<param name="codebase" value="../resources/applet/"/>
<param name="ARCHIVE" value="myApplet.jar" />
<param name="cache_archive" value="myApplet.jar" />
<param name="type" value="application/x-java-applet" />
<param name="cache_option" value="plugin" />
<param name="mayscript" value="true" />
// you can set optional parameters here
</object>
IE:
<object width="400" height="300" classid="java:com.myPackage.Applet.class" codebase="../resources/applet/" name="appletName" id="appletId">
<param name="archive" value="myApplet.jar" />
<param name="type" value="application/x-java-applet" />
<param name="cache_option" value="plugin" />
<param name="mayscript" value="true" />
// you can set optional parameters here
</object>
Here is a good link: http://docs.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/using_tags.html#object

Categories

Resources