Rank: Member
Groups: Member
Joined: 4/28/2007(UTC) Posts: 4
|
Hello. I bought IU/Java hoping it would work the way I've wanted it to, but unfortunately, this simply hasn't been the case. I use the iuembed.js helper script and everything works just fine when I upload to my local testing server (Runs Apache/PHP), but whey I upload the files to the remote testing server to check for speed (it does too run Apache/PHP), ImageUploader just won't show. Here's a dump from my Java Console: Code:load: class com.aurigma.imageuploader.ImageUploader.class not found.
java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
I have seen this problem reported in several threads in the forum, but somehow the solutions don't apply to me. Here's the source code from the page that has IU embedded in it: Code:
<?php require_once('Connections/cnLocal.php'); ?>
<?php
$colname_rsAlbumDetails = "-1";
if (isset($_GET['albumID'])) {
$colname_rsAlbumDetails = (get_magic_quotes_gpc()) ? $_GET['albumID'] : addslashes($_GET['albumID']);
}
mysql_select_db($database_cnLocal, $cnLocal);
$query_rsAlbumDetails = sprintf("SELECT id, title, albumdate FROM albums WHERE id = %s", $colname_rsAlbumDetails);
$rsAlbumDetails = mysql_query($query_rsAlbumDetails, $cnLocal) or die(mysql_error());
$row_rsAlbumDetails = mysql_fetch_assoc($rsAlbumDetails);
$totalRows_rsAlbumDetails = mysql_num_rows($rsAlbumDetails);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
// set sessionvar with album ID for passing
$_SESSION['tmp_album_id'] = $_GET['albumID'];
?>
Crea un nuevo álbum en tres simples pasos
[Imagen detallando una especie de "Roadmap"]
Paso 2 - Agrega imágenes a tu álbum
Álbum: <?php echo $row_rsAlbumDetails['title']; ?>
Fecha: <?php echo date('d/m/Y',strtotime($row_rsAlbumDetails['albumdate'])); ?>
[Ver si el plugin no está instalado, si no, no ver]
Para que puedas subir imágenes a tu álbum de manera conveniente, instalaremos un plug-in en tu computadora. La instalación se hace una sola vez y toma alrededor de 1 minuto en banda ancha (infinitum, cable) o 2 minutos y medio si usas teléfono (56k).
¿Qué riesgo hay? | El plug-in no se instala o veo solamente una hoja con una cruz roja | ¿Es compatible con Mac/Linux/Windows?
<script language="javascript" src="iuembed.js"></script>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./ImageUploader4.cab";
iu.activeXControlVersion = "4,1,60,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.1.60.0";
iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;
iu.showNonemptyResponse = "off";
//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowRotate", "false");
iu.addParam("BackgroundColor", "#ccccff");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");
//Configure URL files are uploaded to.
iu.addParam("Action", "upload.php");
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "albumready.php");
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
//]]>
</script>
Una vez que hayas subido tus imágenes, se te llevará al siguiente paso.
</body>
</html>
<?php
mysql_free_result($rsAlbumDetails);
?>
Both iuembed.js and ImageUploader2.jar are in the root directory. If I even try with a simpler page, I get the same results: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<script language="javascript" src="iuembed.js"></script>
<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./ImageUploader4.cab";
iu.activeXControlVersion = "4,1,60,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.1.60.0";
iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;
iu.showNonemptyResponse = "off";
//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowRotate", "false");
iu.addParam("BackgroundColor", "#ccccff");
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");
//Configure URL files are uploaded to.
iu.addParam("Action", "upload.php");
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "albumready.php");
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
//]]>
</script>
</body>
</html>
Oddly enough, I uploaded the demos to the remote server and IU seems to work just fine. Have a look: http://vivelafoto.fgbdesign.biz/demophp/BasicDemo/index.phpThis is my directory structure. I've made sure everything is in the right place: / /uploadPictures.php (references ImageUploader in same dir) /iuembed.js /ImageUploader2.jar /demophp (this is where the demos reside) /ImageUploader2.jar /BasicDemo /Common /Gallery /index.php /iuembed.js The page in this example (uploadPictures.php) references the top-level ImageUploader2.jar, not the one that's in the demophp directory. What am I doing wrong? This thing is driving me absolutely nuts. Can anybody please provide any help? Best regards, FGB. Edited by user Tuesday, December 18, 2007 3:57:21 AM(UTC)
| Reason: Not specified
|