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

Notification

Icon
Error

Options
Go to last post Go to first unread
Phil C  
#1 Posted : Wednesday, December 5, 2007 12:53:28 AM(UTC)
Phil C

Rank: Member

Groups: Member
Joined: 12/3/2007(UTC)
Posts: 1

Quote:
I fixed the problem below by noticing when I go to your demo area I get the notification and the name Aurigma as the name of the control. I reuploaded the cabs and .js and it functions correctly now. Thanks for listening. :)



I setup my code the way I wanted and all works fine on a computer that already has
the activeX controls installed.

When I go to a different computer without activeX controls the information bar comes
up and I select to install the activeX controls. Something seems to download but then
the built in message appears prompting me to install the controls.

When I press refresh on the browser, the info bar pops up again and so the cycle
continues without installation. What am I missing... :doze:

Been trying for hours... The cabs and .js are in the correct place.

IE 7. WindowsXP

Here is the code.

Code:
<!--BEGIN-->
<!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>
	<title>Install ActiveX Controls</title>

	<script type="text/javascript" src="../iuembed.js"></script>

	<link href="style.css" type="text/css" rel="stylesheet" />

	<script type="text/javascript">
//<![CDATA[	
//This UploadFileCountChange event handler displays total size of all files selected for upload.
function ImageUploader_UploadFileCountChange(){
	var imageUploader1 = getImageUploader("ImageUploader1");
	if (imageUploader1){
		document.getElementById("TotalSourceFileSize").value = Math.ceil(imageUploader1.getTotalFileSize() / 1024);
	}
}

//This Progress event handler demonstrates an alternative way to 
//redirect upon upload (instead of RedirectUrl property).
function ImageUploader_Progress(Status, Progress, ValueMax, Value, StatusText){
	if (Status=="COMPLETE"){
		window.location = 'nextpage.html';  
	}
} 

//]]>
	</script>

</head>
<body>

	<!-- This form contains total size of source files in the upload list. -->
	<form id="Form1" name="Form1" action=".">
		


			Total source file size:
<input id="TotalSourceFileSize" name="TotalSourceFileSize" type="text" readonly="readonly"
value="0" size="7" /> kb

      </form>

	<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,5,70,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.5.70.0";

iu.showNonemptyResponse = "off";

//Configure appearance and behaviour.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("ShowDescriptions", "false");
iu.addParam("BackgroundColor", "#ffffff");

//Configure Image Uploader to rotate photos automatically 
//according to the orientation stored in EXIF metadata.
iu.addParam("AllowAutoRotate", "true");

//Append the form with total file size to the upload.
iu.addParam("AdditionalFormName", "Form1");

//Configure file mask to upload JPEG images only.
iu.addParam("FileMask", "*.jpeg;*.jpg;*.jpe");

//Set image size restrictions.
iu.addParam("MinImageWidth", "360");
iu.addParam("MinImageHeight", "360");

//Exclude the source file from upload because only 
//resized versions of the photo will be sent.
iu.addParam("UploadSourceFile", "false");

//Configure settings of the optimized image. Optimized image
//is resized to 1200x1200 with JPEG quality = 60 and EXIF 
//metadata is preserved.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "525");
iu.addParam("UploadThumbnail1Height", "525");
iu.addParam("UploadThumbnail1JpegQuality", "85");
iu.addParam("UploadThumbnail1CopyExif", "true");

//Watermark for larger image
iu.addParam("UploadThumbnail1Watermark", "Text='PROOF';Opacity=30;FillColor=#ffffff;Position=Center;Style=Italic;Size=70");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "135");
iu.addParam("UploadThumbnail2Height", "135");
iu.addParam("UploadThumbnail2JpegQuality", "85");

//Configure URL files are uploaded to.
iu.addParam("Action", "upload.php");

//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("Progress", "ImageUploader_Progress");

//Tell Image Uploader writer object to generate all necessary HTML code to embed 
//Image Uploader to the page.
iu.writeHtml();
//]]>
	</script>

</body>
</html>
<!--END-->



Edited by user Monday, February 25, 2008 2:55:57 PM(UTC)  | Reason: Not specified

Phil C
Alex Makhov  
#2 Posted : Thursday, December 6, 2007 1:09:04 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello Phil,

So did you fix the problem? In such situation my main idea about the reason of the problem would be to check if you are really use ImageUploader4.cab 4.5.70.0 because if you put for example 4.5.50.0 and specify 4.5.70.0 as a version number you will have the specified behavior.
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
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.