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

Notification

Icon
Error

Options
Go to last post Go to first unread
Gerard  
#1 Posted : Sunday, February 12, 2006 10:19:19 PM(UTC)
Gerard

Rank: Member

Groups: Member
Joined: 2/12/2006(UTC)
Posts: 9

I want to use the addfield property with the java applet. If i add the following line the page is not executed properly and i get a blank screen.

Code:
getImageUploader("ImageUploader1").AddField("field", "value");

It works fine for the activeX version. How can i solve this?/What am i doing wrong?

Edited by user Thursday, December 20, 2007 5:10:25 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Monday, February 13, 2006 11:57:29 AM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

When do you call this code (on some button click or ImageUploader event)?

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Gerard  
#3 Posted : Tuesday, February 14, 2006 5:19:09 PM(UTC)
Gerard

Rank: Member

Groups: Member
Joined: 2/12/2006(UTC)
Posts: 9

Right after writing the html for the applet:

Code:
var iu = new ImageUploaderWriter("ImageUploader1", 770, 500);
iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

//For Java applet we specify only directory with JAR files
iu.javaAppletCodeBase = "../../../";
iu.javaAppletCached = true;
iu.javaAppletVersion = "1.1.70.0";
iu.addParam("Layout","TwoPanes");
iu.addParam("UploadThumbnail1FitMode","off");
iu.addParam("UploadThumbnail1Width","120");
iu.addParam("UploadThumbnail1Height","120");
iu.addParam("UploadThumbnail1JpegQuality","60");
iu.addParam("ShowDebugWindow","False");
iu.addParam("EnableRotate","False");
iu.addParam("Action","DocumentUploadProcess.aspx");
iu.addParam("MaxTotalFileSize", "10240000");
iu.addParam("UploadMode", "Separate");
iu.addParam("TimeOut", "12000000");									
iu.addEventListener("Progress", "ImageUploader_Progress");
iu.writeHtml();			
									
getImageUploader("ImageUploader1").AddField("FileLocation", "ParticipantUser");

Edited by user Thursday, December 20, 2007 5:10:44 PM(UTC)  | Reason: Not specified

Alex Makhov  
#4 Posted : Wednesday, February 15, 2006 12:56:55 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

You have to use fullPageLoad or beforeUpload event handler which is called after Image Uploader initialization. Change your code to the following:

Code:
iu.addParam("TimeOut", "12000000"); 
iu.addEventListener("Progress", "ImageUploader_Progress");
iu.fullPageLoadListenerName = "fullPageLoad";
iu.writeHtml();

And add fullPageLoad handler:

Code:
function fullPageLoad()
{	
  getImageUploader("ImageUploader1").AddField("FileLocation", "ParticipantUser");
}

Edited by user Thursday, December 20, 2007 5:11:59 PM(UTC)  | Reason: Not specified

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Gerard  
#5 Posted : Wednesday, February 15, 2006 9:22:00 PM(UTC)
Gerard

Rank: Member

Groups: Member
Joined: 2/12/2006(UTC)
Posts: 9

Ok, thanx. It does work now :).

Maybe you want to put this example in the helpfile cos i would never come to this solution reading the helpfile.

Alex Makhov  
#6 Posted : Thursday, February 16, 2006 11:50:08 AM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

Quote:
Maybe you want to put this example in the helpfile cos i would never come to this solution reading the helpfile.

OK, we will make the changes.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Guest
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.