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

Notification

Icon
Error

Options
Go to last post Go to first unread
janetsmith  
#1 Posted : Saturday, January 6, 2007 10:31:48 PM(UTC)
janetsmith

Rank: Member

Groups: Member
Joined: 2/1/2006(UTC)
Posts: 40

I found a bug.

If we invisible the IU in Details mode during initialization using
<span id="spanIu" style="display:none">
.
iu javascript code goes here.
.
</span>

and after that we change it to style.display='"", iu appears, but all the columns shrinks to one left corner.

The only way to make the column's width to normal is to switch the view mode to 'Thumbnails' first, and change it back to 'Details'.

That is the 1st problem.
The 2nd problem is setUploadView() never work. I have to change the view manually by using right mouse click.

I modified the BasicDemo default file:
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>
//** Modified
	var isVisible;
	isVisible = false;
	
	function toggleVisible() {
		
		if (isVisible) {
			document.getElementById('spanIu').style.display = 'none';
			isVisible = false;
		} else {
			document.getElementById('spanIu').style.display = '';
			isVisible = true;
		}
	}
</script>


<button onclick="toggleVisible();">toggle visibility</button>


<!-- **Modified -->
<span id="spanIu" style="display:none">

	<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,1,1,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.1.1.0";

iu.showNonemptyResponse = "off";

//Configure appearance.

//**Modified
iu.addParam("PaneLayout", "OnePane");
iu.addParam("UploadView", "Details");

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>
</span>
</body>
</html>
<!--END-->




Edited by user Tuesday, February 19, 2008 6:35:35 PM(UTC)  | Reason: Not specified

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.