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

Notification

Icon
Error

Options
Go to last post Go to first unread
jjaslow  
#1 Posted : Friday, January 18, 2008 1:10:38 AM(UTC)
jjaslow

Rank: Newbie

Groups: Member
Joined: 1/7/2008(UTC)
Posts: 1

Ive seen on other sites that use Image Uploader that they have a script that will check if the Uploader is already installed on the clients computer. If it is, then the script does nothing. If uploader is not installed, then the script displays some text and graphics that explains to the user about the IE information bar and how to install the uploader tool.

Does anybody have such a script available? Im running on a Linux server and most of my apps are written in PHP.

Thanks,
Jason
Fedor  
#2 Posted : Monday, January 21, 2008 12:44:29 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
You can check whether ActiveX control already installed using of getActiveXInstalled method of ImageUploaderWriter object:

Code:
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);

iu.activeXControlCodeBase = "../ImageUploader5.cab";
iu.activeXControlVersion = "5,0,15,0";

if (!iu.getActiveXInstalled()) {
    //Put your code here for case when Image Uploader is not installed
    //alert("Image Uploader is not installed.");
}

//...

Edited by user Monday, January 21, 2008 12:45:48 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Alex Makhov  
#3 Posted : Monday, January 21, 2008 12:58:01 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello Jason,

As an addition to Fedor post:

There is FullPageLoad event which is called right after Image Uploader initialization. You could show some specific text until Image Uploader is not initialized and on FullPageLoad event just hide this text. There is a text shown by ImageUploaderWriter before Image Uploader initialization by default. Look to the values instructionsCommon, instructionsWinXPSP2 and so on in iuembed.js script reference.

Edited by user Tuesday, October 28, 2008 7:12:29 AM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Fedor  
#4 Posted : Monday, January 21, 2008 1:20:23 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
I just want to add that instructionsCommon and instructionsWinXPSP2 texts are displayed only if Image Uploader failed to install. During installation process they are not displayed.
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.