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

Notification

Icon
Error

Options
Go to last post Go to first unread
fredg  
#1 Posted : Sunday, July 1, 2007 4:22:37 AM(UTC)
fredg

Rank: Member

Groups: Member
Joined: 6/26/2006(UTC)
Posts: 2

I have read the docs about how to put the license key into the apps, and i have tried to get an answer from support. But can some please explain this in a human way?

Take the "Basic Demo" asp example included with the uploader, how do i put my valid key into this example? I have tried to put it where the "XXXX-XXXX-XXXX-XXXX" are, but i guess im missing something!! I have read about invoke, but i dont find ANYTHING similar in the demo code! How hard can it be!?

Code:

<%@ Language="VBScript" %>
<!--#include file="../config.asp"-->

<!--BEGIN-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Aurigma Image Uploader - Basic Demo</title>

	<script type="text/javascript" src="../iuembed.js"></script>

	<link href="style.css" type="text/css" rel="stylesheet" />
</head>
<body>
	


		This simple application is a quick start demo with minimum settings. It demonstrates
		how to:
	
	<ul>
		<li>Display thumbnails in two-pane layout.</li>
		<li>Upload the file with 120x120 thumbnail.</li>
		<li>Redirect to another page after successful upload.</li>
	</ul>
	<fieldset>
		<legend>Note</legend>This demo application <strong>deletes all previously uploaded files</strong>.
		Keep in mind that it is a feature of this demo, not of Image Uploader itself. If
		you <strong>do not want to delete uploaded files</strong>, you should modify the
		upload processing page specified by the <strong>Action</strong> parameter.
	</fieldset>

	<script type="text/javascript">
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "../ImageUploader4.cab";
iu.activeXControlVersion = "4,5,4,0";

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.5.4.0";

iu.showNonemptyResponse = "off";

//I ADDED THIS!
iu.addParam("LicenseKey", "XXXX-XXXX-XXXX-XXXX");

//Configure appearance.
iu.addParam("PaneLayout", "TwoPanes");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("AllowRotate", "false");
iu.addParam("BackgroundColor", "#ccccff");

//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");

//Configure URL files are uploaded to.
iu.addParam("Action", "<%=GetUploadUrl()%>")

//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "<%=GetGalleryUrl()%>")

//Tell Image Uploader writer object to generate all necessary HTML code to embed 
//Image Uploader to the page.
iu.writeHtml();
//]]>
	</script>

</body>
</html>
<!--END-->

:crazy:

Edited by user Friday, February 22, 2008 5:52:15 PM(UTC)  | Reason: Not specified

George Ulyanov  
#2 Posted : Sunday, July 1, 2007 12:48:54 PM(UTC)
George Ulyanov

Rank: Advanced Member

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

Hello,

Code:
iu.addParam("LicenseKey", "XXXX-XXXX-XXXX-XXXX");

It seems it is correct code. could you post the URL of the page with Image Uploader?

Also please check Removing Limitations of Evaluation Version topic.

Edited by user Tuesday, October 28, 2008 6:06:39 AM(UTC)  | Reason: Not specified

Best regards,

George Ulyanov

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.