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

Notification

Icon
Error

Options
Go to last post Go to first unread
Bob_J  
#1 Posted : Tuesday, September 25, 2007 7:22:50 AM(UTC)
Bob_J

Rank: Member

Groups: Member
Joined: 3/20/2006(UTC)
Posts: 30

I'm using the following function as an event listener on a page:

Code:
function ImageUploaderID_UploadFileCountChange()
{
	var getSize = "";
	var vWidth = "";
	var vHeight = "";
	var getImage = "";
	
	getImage = getImageUploader("ImageUploader").getPaneItemCount(1);
	
	vHeight = getImageUploader("ImageUploader").getUploadFileHeight(getImage);
	vWidth = getImageUploader("ImageUploader").getUploadFileWidth(getImage);
	if(vHeight < 360)
		getSize = getSize + "Image: " + i + " " + vHeight + "\n";
		
	var ratio = vWidth / vHeight;
	if(ratio < 2.0)
		getSize = "on";
	
	if(getSize)
	{
		var strText = "WARNING: The photo you have selected to upload is smaller than our recommended size or is not the correct aspect ratio. Images should be in a 2:1 aspect ratio and at least 720 pixels wide by 360 pixels high. \n\nYou may still add this image but it will result in poor quality and may not pan.";
		//var strText = getSize;
		alert(strText);
	}
}


It works beautifully in Firefox with the Java version, but in IE with the ActiveX version, I get a javascript error telling me "Object doesn't support this property or method" on the line relating to getPaneItemCount. Any ideas what the problem is?

Edited by user Tuesday, February 12, 2008 12:33:55 PM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Thursday, September 27, 2007 2:35:29 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello Bob,

Your code works fine with IU 4.5, perhaps you are using an old ActiveX version.

Edited by user Monday, February 25, 2008 4:20:39 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin
The Aurigma Development Team
Bob_J  
#3 Posted : Friday, September 28, 2007 8:38:14 AM(UTC)
Bob_J

Rank: Member

Groups: Member
Joined: 3/20/2006(UTC)
Posts: 30

Lovely. I upgraded to the latest version (4.5.50.0) and it works great in IE, but now it doesn't work in Firefox -- the java version just freezes up when you try to add a picture to the upload pane. Am getting very frustrated.
Eugene Kosmin  
#4 Posted : Sunday, September 30, 2007 12:42:13 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
I couldn’t reproduce your behavior with Java IU 2.5.50. Can you give me Java console dump and full page code?

Edited by user Monday, February 25, 2008 4:20:48 PM(UTC)  | Reason: Not specified

Best regards,
Eugene Kosmin
The Aurigma Development Team
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.