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

Notification

Icon
Error

Options
Go to last post Go to first unread
stewsterl  
#1 Posted : Monday, February 4, 2008 3:05:29 AM(UTC)
stewsterl

Rank: Member

Groups: Member
Joined: 1/14/2008(UTC)
Posts: 18

If you add a ImageUploader and a UploadPane using the control you get this error:
'up' is undefined

The problem is with the wrapper.. This is the javascript it creates:

Code:
//<![CDATA[
var iu = new UploadPaneWriter("ImageUploader1", 300, 200);
up.activeXControlCodeBase = "ImageUploader5.cab";
up.javaAppletCodeBase = "";
up.addParam("ParentControlName", "ImageUploader");
up.writeHtml();
//]]>


It should be

Code:
//<![CDATA[
var [color=blue]up[/color] = new UploadPaneWriter("ImageUploader1", 300, 200);
up.activeXControlCodeBase = "ImageUploader5.cab";
up.javaAppletCodeBase = "";
up.addParam("ParentControlName", "ImageUploader");
up.writeHtml();
//]]>

Edited by user Tuesday, February 26, 2008 6:45:32 PM(UTC)  | Reason: Not specified

George Ulyanov  
#2 Posted : Tuesday, February 5, 2008 2:13:35 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203

Thank you for this bug report. We will fix it in further releases.

Note: We provide ASP.NET controls with the source code to give you ability to change some parts of code with no limits.

Edited by user Wednesday, February 6, 2008 3:04:35 AM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
Fedor  
#3 Posted : Wednesday, February 6, 2008 4:54:24 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
I am working over the update. Right now just open BaseControl.cs file and update code on line 492 to the following one:

Code:
writer.WriteLine("var " + JavaScriptWriterVariableName + " = new " + JavaScriptWriter 
	+ "(\"" + JavaScriptEncode(this.ID) + "\", "
	+ this.Width.Value.ToString(cultureInfo) + ", "     //  TODO: In pixels only
	+ this.Height.Value.ToString(cultureInfo) + ");");  //  TODO: In pixels only


Best regards,
Fedor Skvortsov
Fedor  
#4 Posted : Friday, February 8, 2008 5:21:45 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,567

Thanks: 5 times
Was thanked: 64 time(s) in 63 post(s)
Best regards,
Fedor Skvortsov
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.