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

Notification

Icon
Error

Options
Go to last post Go to first unread
jerof  
#1 Posted : Thursday, September 4, 2008 12:31:44 AM(UTC)
jerof

Rank: Newbie

Groups: Member
Joined: 8/6/2008(UTC)
Posts: 5

Hello
Each time I used ImageUploader, it set the default folder to the next folder used.
How can I set the default folder to Desktop ?
Thanks
Fedor  
#2 Posted : Thursday, September 4, 2008 4:06:44 AM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
Hello,

ImageUploader.GoToFolder Method is what you need.

Code:
getImageUploader("ImageUploader1").GoToFolder("Desktop");
Best regards,
Fedor Skvortsov
jerof  
#3 Posted : Thursday, September 4, 2008 5:24:49 PM(UTC)
jerof

Rank: Newbie

Groups: Member
Joined: 8/6/2008(UTC)
Posts: 5

Sorry, but I don't undestand where I have to write this code.
I'm using Visual Studio 2005 and aspx pages.

My code is :
var iu = new ImageUploaderWriter("ImageUploader1", 900, 430);

iu.activeXControlCodeBase = "/ImageUploader5.cab";
iu.activeXControlVersion = "5,1,10,0";
....
Fedor  
#4 Posted : Thursday, September 4, 2008 6:10:49 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
You can call this code in ImageUploader.InitComplete event handle:

Code:
<script type="text/javascript" src="iuembed.js"></script>
<script type="text/javascript">
function ImageUploader1_InitComplete() {
	getImageUploader("ImageUploader1").GoToFolder("Desktop");
}
var iu = new ImageUploaderWriter("ImageUploader1", 610, 500);
//...params...
//...other event listeners...
iu.addEventListener("InitComplete", "ImageUploader1_InitComplete");
//...other event listeners...
iu.writeHtml();
</script>

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.