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

Notification

Icon
Error

Options
Go to last post Go to first unread
Tamila  
#1 Posted : Tuesday, July 28, 2009 1:46:26 AM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
There are two situations that can confuse users while downloading and installing Image Uploader Java. The first, it takes some time to download and install Image Uploader Java on clients' machines. The second, if the JRE version required by Image Uploader is not installed on users computers, Image Uploader fails to install. It would be great to display detailed information what is going on and how to fix the problem with JRE (if any) in these two cases.

This functionality is implemented in the InstallationProgressExtender class defined in the iuembed.InstallationProgress.js helper script file. The following code sample shows how to create the extender and bind it to ImageUploaderWriter object.
Code:
<script type="text/javascript" src="../iuembed.InstallationProgress.js"></script>

<script type="text/javascript">
var iu = new ImageUploaderWriter("ImageUploader1", 600, 600);

//Configure Image Uploader

var ip = new InstallationProgressExtender(iu);

//Configure Image Uploader extender

iu.writeHtml();
</script>


As it was mentioned before there are two major points that this extender may concern: installation of JRE (if it is required) and initialization of Image Uploader Java applet.

JRE installation screen

You can use the following properties of InstallationProgressExtender to provide users with additional information on JRE isntallation process.
  • setCommonInstallJavaHtml - specifies the text saying that the additional component such as JRE is required.
  • setBeforeIE6XPSP2InstallJavaHtml, setIE6XPSP2InstallJavaHtml, setIE7InstallJavaHtml, setIE8InstallJavaHtml - Since different versions of Internet Explorer browsers have different workflows of downloading ActiveX controls (JRE for Internet Explorer is an ActiveX control) you can use this set of properties to customize downloading instructions based on browser version Image Uploader is about to be installed on.
  • setMacInstallJavaHtml - This property allows to set instructions for Mac users who use Safari. Actually all Macs have JRE installed, but the current version can be unsuitable for Image Uploader. So, you can specifiy information about necessary JRE version here.
  • setMiscBrowsersInstallJavaHtml - Here you can specify instructions on JRE installation for the other Java-enabled browsers: Firefox, Opera, Chrome etc.
Image Uploader Java applet initialization screen

You can use the InstallationProgressExtender.setJavaProgressHtml property to provide users with information on Image Uploader Java download and initialization progress. This property specifies a text saying that the initialization is in progress. Value defined in this property can contain '{0}' placeholder. Before displaying this screen, the placeholder is replaced with image URL defined in the InstallationProgressExtender.setProgressImageUrl property (see the sample below). It allows you to customize images without changing HTML-marked text.

Here is small code sample showing how to use the functionality mentioned before.

Code:
ip.setJavaProgressHtml("<p><img src=\"{0}\" /><br />Please wait");
ip.setProgressImageUrl("../Scripts/InstallationProgress.gif");

ip.setCommonInstallJavaHtml("<p>Java SE is necessary for Image Uploader<p>");

ip.setBeforeIE6XPSP2InstallJavaHtml("<p>To install Image Uploader, please wait "
		+ "until the control will be loaded and click the" 
		+ "<strong>Yes</strong> button when you see the installation dialog.</p>");

ip.setIE6XPSP2InstallJavaHtml("<p>To install Java SE, please click on the "
		+ "<strong>Information Bar</strong> "
		+ "and select <strong>Install ActiveX Control</strong> or <strong>Run ActiveX "
		+ "Control</strong> from the dropdown menu.</p>"
		+ "<p>Then either click <strong>Run</strong> or after page reload click "
		+ "<strong>Install</strong> when you see the control installation dialog. "
		+ "If you do not see Information Bar, "
		+ "please try to reload the page and/or check your security settings.</p>");

ip.setIE7InstallJavaHtml("<p>To install Java SE, please click on the "
		+ "<strong>Information Bar</strong> "
		+ "and select <strong>Install ActiveX Control</strong> or <strong>Run ActiveX "
		+ "Control</strong> from the dropdown menu.</p>"
		+ "<p>Then either click <strong>Run</strong> or after page reload click "
		+ "<strong>Install</strong> when you see the control installation dialog. "
		+ "If you do not see Information Bar, "
		+ "please try to reload the page and/or check your security settings.</p>");

ip.setIE8InstallJavaHtml("<p>To install Java SE, please click on the "
		+ "<strong>Information Bar</strong> "
		+ "and select <strong>Install ActiveX Control</strong> or <strong>Run ActiveX "
		+ "Control</strong> from the dropdown menu.</p>"
		+ "<p>Then either click <strong>Run</strong> or after page reload click "
		+ "<strong>Install</strong> when you see the control installation dialog. "
		+ "If you don't see Information Bar, "
		+ "please try to reload the page and/or check your security settings.</p>");

ip.setMacInstallJavaHtml("<p>You need to install Java plug-in 1.5 or higher</p>");

ip.setMiscBrowsersInstallJavaHtml("<p>You need to install Java SE plug-in</p>");


See also:

Edited by user Tuesday, August 4, 2009 1:20:47 AM(UTC)  | Reason: Not specified

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
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.