Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
photo_tom  
#1 Posted : Thursday, June 23, 2005 11:16:00 AM(UTC)
photo_tom

Rank: Member

Groups: Member
Joined: 11/27/2003(UTC)
Posts: 29

I' in process of going from Active-x to Java versions and things are not going well.
Application is in an asp.net enviorment.

Below is my code.
1 - LicenseKey is actual site licensekey for production site,but I'm running on localhost for development.
2 - Upload only uploads a 2kb thumbnail, it should be a 1200x800 pixel file downsized from 3072 to 2048.
3 - In routine to recieve file, it is correctly called and has an indicated file count of one, but there are no files. I"m similar code to your samples and it is same code that recieved file in active-x version.

Any thoughts on where to look.

Code:
--------------------------------------------------------------------------------------
<script src="uploader_Java/iuembed.js"></script>
<script language="javascript">
var iu = new ImageUploaderWriter("ImageUploader", 770, 500);
iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

//For ActiveX control we specify full path for CAB file
//iu.activeXControlCodeBase = "../ImageUploader3.cab";
//iu.activeXControlVersion = "3,5,50,0";

//For Java applet we specify only directory with JAR files
iu.javaAppletCodeBase = "uploader_Java/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "1.0.28.0";
iu.addParam("LicenseKey", "xx....xx");
iu.addParam("Layout","TwoPanes"); //This parameter will be ignored by Java version

iu.addParam("AutoRecoverMaxTriesCount","5");
iu.addParam("AutoRecoverTimeOut","5000");
iu.addParam("FilesPerOnePackageCount","1");					
//iu.addEventListener("Progress","ImageUploader_Progress");
</script>
<script language="javascript">
iu.addParam("Action" ,"/dotnetnuke/desktopmodules/photoUpload/PhotoUploadReceiveImage.aspx?photoOrderID=141&paperpriceID=1&qty=1&ratio=1.50&maxDim=6");
iu.addParam("RedirectUrl" ,"http://localhost/dotnetnuke/Default.aspx?tabid=37&pupageid=2");
iu.addParam("UploadThumbnail1Width" ,"1200");
iu.addParam("UploadThumbnail1Height" ,"1200");
iu.addParam("UploadThumbnail1JpegQuality" ,"90");
iu.addParam("UploadSourceFile" ,"False");
iu.addParam("FileMask" ,"*.jpg;*.jpeg;*.JPG;*.JPEG");
iu.addParam("TimeOut" ,"45000");
iu.addParam("PreviewThumbnailSize" ,"150");
iu.addParam("SilentMode" ,"False");
iu.addParam("ShowDebugWindow" ,"True");
iu.addParam("EnableRotate" ,"True");
iu.addParam("ShowDescriptions" ,"False");
</script >

<script language="javascript">
iu.writeHtml();
</script>

Edited by user Sunday, December 23, 2007 6:06:47 PM(UTC)  | Reason: Not specified

Tom Thorp
Still waters, great photos
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.