⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 object_progress.html

📁 aspupload
💻 HTML
字号:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="KEYWORDS" content="ASP UPLOAD ASPUPLOAD PWS BLOB Personal Web Server IIS Internet Information Server ASP UPLOADING UPLOAD DEC ALPHA AlphaServer AspUpload Persits Software Persits Web ASP Active Server Pages Active Server Component Upload browser TYPE=FILE TYPE FILE Windows NT Web ACL ACE Access Control List Directory Listing Export Attribute FILE FREE RFC ie3 ie4 posting acceptor posting acceptor RFC1867 RFC-1867 1867 Component ENCTYPE multipart/form-data multipart SA-FileUp ActiveFile Database Multiple software artisans activefile vbscript activex jscript netscape internet explorer download downloading unique form limit size">
<meta name="KEYWORDS" content="ASP, UPLOAD, ASPUPLOAD, PWS, BLOB, Personal Web Server, IIS, Internet Information Server, ASP, UPLOADING, UPLOAD, DEC, ALPHA, AlphaServer, AspUpload, Persits Software, Persits, Web, ASP, Active Server Pages, Active Server Component, Upload, browser, TYPE=FILE, TYPE, FILE, Windows, NT, Web, ACL, ACE, Access Control List, Directory, Listing, Export, Attribute, FILE, FREE, RFC, ie3, ie4, posting acceptor, posting, acceptor, RFC1867, RFC-1867, 1867, Component, ENCTYPE, multipart/form-data, multipart, SA-FileUp, ActiveFile, Database, Multiple, software, artisans, activefile, vbscript, activex, jscript, netscape, internet, explorer, download, downloading, unique, form, limit, size">
<meta name="DESCRIPTION" content="AspUpload.com - the home of the most advanced upload solution for a Windows NT/ASP-based Web environment">
<TITLE>AspUpload.com - ProgressManager Object</TITLE>
</HEAD>
<BODY BACKGROUND="bk.gif" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<BASEFONT FACE="Helvetica, Arial" SIZE=1>

<!-- Main Data table -->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="705">
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="160">
<FONT FACE="arial narrow" Size=2>
<B>
	<IMG SRC="spacer.gif" BORDER="0" HEIGHT="15"><BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="index.html">Home</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="whatsnew.html">What's New</A>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="manual.html">User Manual</A><p>
	<IMG SRC="sq.gif"><IMG SRC="square_pressed.gif"> <A HREF="objectreference.html">Object Reference</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="square_small.gif"> <A HREF="object_upload.html">UploadManager</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="square_small.gif"> <A HREF="object_file.html">UploadedFile</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="square_small.gif"> <A HREF="object_formitem.html">FormItem</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="square_small.gif"> <A HREF="object_diritem.html">DirItem</A><BR>	
	<IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="sq.gif"><IMG SRC="square_small_pressed.gif"> ProgressManager<BR>
	<P>

	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="livedemo.html">Live Demos</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="support.html">Support</A>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="xupload.html">XUpload</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="jupload.html">JUpload</A><BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="aspjpeg.html">AspJpeg</A><BR>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="download.html">Download</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="purchase.html">Purchase</A>
	<P>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="clients.html">Clients</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="otherproducts.html">Other Products</A>
	<BR>
	<IMG SRC="sq.gif"><IMG SRC="square.gif"> <A HREF="contact.html">Contact Us</A>


	<FORM TARGET="_new" ACTION="http://support.persits.com/emails/signup.asp">
	<FONT FACE="Arial Narrow" SIZE="2" COLOR="#9C3131"><IMG SRC="sq.gif"><B>Newsletter Signup</B></FONT><BR>
	<IMG SRC="sq.gif"><INPUT TYPE="TEXT" NAME="email" SIZE="15" VALUE="e-mail address"></FORM>
</B>
</FONT>
</TD>
<TD VALIGN=TOP WIDTH=545 ALIGN="LEFT">
<!-- Right Column with data -->
<IMG SRC="sq.gif"><BR>
<IMG SRC="objectreference.gif">
<BR>
<TABLE WIDTH=540 HEIGHT=2 CELLSPACING=0 CELLPADDING=0 BORDER=0>
<TD BGcolor="#FFCE00"><spacer type=block width=540 height=2></TD>
</TABLE>
	<P>
	<FONT SIZE=2 FACE=ARIAL COLOR="#000000">
	<A HREF="object_diritem.html"><IMG BORDER="0" SRC="previous.gif" ALIGN="RIGHT" ALT="DirItem Object"></A>
	<B><U><FONT SIZE="3" COLOR="#990000">ProgressManager Object</FONT></U></B>
	<P>

	<BLOCKQUOTE>

	The ProgressManager object is a top-lever object responsible
	for managing and rendering the progress indicator.
	See <A HREF="manual_progress.html">Chapter 5</A> for more information.
	<P>

	<!-- object propeties and methods table-->
	<TABLE WIDTH="400" CELLSPACING="0" CELLPADDING="2" BORDER="1">
	<TR><TH BGCOLOR="#E0E0E0"><FONT FACE="Arial" SIZE=2>Properties</FONT></TH>
		<TH BGCOLOR="#E0E0E0"><FONT FACE="Arial" SIZE=2><A HREF="#Methods">Methods</A></FONT></TH></TR>
	<TR>
	<TD VALIGN="TOP"><FONT FACE="Arial" SIZE=2>
	<B>
	<B>This object has no properties.
	</B>
	</B>
	</FONT></TD>

	<TD VALIGN="TOP"><FONT FACE="Arial" SIZE=2>
	<A HREF="#CreateProgressID">CreateProgressID</A><BR>
	<A HREF="#FormatProgress">FormatProgress</A><BR>
	</FONT></TD>
	</TR>
	</TABLE>
	
	<A NAME="Methods">

	</BLOCKQUOTE>
	<B><FONT COLOR="#0000A0">ProgressManager Methods</FONT></B>
	<BLOCKQUOTE>


	<A NAME="CreateProgressID">
	Function <FONT COLOR="#0080A0"><B>CreateProgressID</B></FONT> As String
	<BLOCKQUOTE>
	Returns a unique progress ID which connects
	the progress bar window with its respective upload form and script.
	This method is to be called from the file containing the upload
	form.
	<P>
	<B>Usage:</B><FONT FACE="Courier New"><P>
	Set UploadProgress = Server.CreateObject("Persits.UploadProgress")<BR>
	PID = "PID=" & UploadProgress.CreateProgressID()
	</FONT><P>
	<B>Relevant Chapters:</B> <A HREF="manual_progress.html">5</A>
	</BLOCKQUOTE>


	<A NAME="FormatProgress">
	Function <FONT COLOR="#0080A0"><B>FormatProgress</B></FONT> (<I>PID</i> As String, ByRef Iteration As Variant, BarColor As String, FormatString As String) As String
	<BLOCKQUOTE>
	Returns HTML code for the progress indicator, including the progress bar itself
	and all numeric upload parameters.
	<P>
	<I>PID</i> is the progress ID generated by the CreateProgressID method.
	<P>
	<I>Iteration</i> is an integer variable which controls how many refreshes
	the progress window will stay open for in case the server stops responding.
	In our code samples, this value is set to 10 and can be changed to a smaller
	or larger number.
	<P>
	<I>BarColor</i> specifies the color of the progress bar. By default, this parameter
	is set to "#00007F".
	<P>
	<i>FormatString</i> is a string which controls the appearance
	of the progress bar. It is through this parameter that you can 
	customize the layout of the progress window and its components.
	The format string may contain special characters
	which are placeholders for various HTML tags and progress indicators.
	<P>
	Below is the list of possible special characters the format string may contain:
	<P>
	<B>%T</B> - the beginning of an HTML table (&lt;table>&lt;tr>&lt;td>)<BR>
	<B>%t</B> - the end of an HTML table (&lt;/td>&lt;/tr>&lt;/table>)<BR>
	<B>%d</B> - a new column (&lt;/td>&lt;td>)<BR>
	<B>%r</B> - a new column aligned to the right (&lt;/td>&lt;td align=right>)<BR>
	<B>%c</B> - a new column aligned to the center (&lt;/td>&lt;td align=center>)<BR>
	<B>%l</B> - a new row (&lt;/td>&lt;/tr>&lt;tr>&lt;td>)<BR>
	<B>%n</B> - a line break (&lt;br>)<P>
	<B>%B<I>n</i></B> - the progress bar; <i>n</i> indicates the number
	of percentage points per progress square. Our sample uses <B>%B3</B>.
	For a solid progress bar, use <B>%B0</B>.
	<P>
	The following special characters are placeholders for various
	numeric values:
	<P>
	<B>%E</B> - elapsed time<BR>
	<B>%R</B> - remaining time<BR>
	<B>%S</B> - current transfer speed<BR>
	<B>%U</B> - transferred amount<BR>
	<B>%V</B> - total upload size<BR>
	<B>%P</B> - percentage completed<BR>
	<B>%Y</B> - remaining amount
	<P>
	By default, <I>FormatString</i> is set to the following value:
	<P>
	<B>"%TUploading files...%t%B3%T%R left (at %S/sec) %r%U/%V(%P)%l%t"</B>
	<P>
	which evaluates to the following progress bar layout:
	<P>
	<IMG SRC="progressbar.gif">
	<P>
	<B>Usage:</B><FONT FACE="Courier New"><P>
	bar_content = UploadProgress.FormatProgress(PID, TimeO, "#00007F", format)<P>
	</FONT><P>
	<B>Relevant Chapters:</B> <A HREF="manual_progress.html">5</A>
	</BLOCKQUOTE>




	<P>
	<A HREF="object_diritem.html"><IMG BORDER="0" SRC="previous.gif" ALIGN="RIGHT" ALT="DirItem Object"></A>
	<P>&nbsp;
	</BLOCKQUOTE>



	

	</FONT>
	<P>
	<TABLE WIDTH=540 HEIGHT=2 CELLSPACING=0 CELLPADDING=0 BORDER=0>
	<TD BGcolor="#FFCE00"><spacer type=block width=540 height=2></TD>
	</TABLE>
	<P>
	<CENTER>
	<A HREF="index.html"><IMG SRC="logo_small.gif" BORDER=0></A>
	<BR>
	<FONT Face=arial size=1>
	Copyright &copy; 1998 - 2001 <A HREF="http://www.persits.com">Persits Software, Inc.</A><BR>
	All Rights Reserved<BR>
	AspUpload&reg; is a registered trademark of Persits Software, Inc.<BR>
	Questions? Comments? <A HREF="MAILTO:info@aspupload.com">Write us!</A>
	</CENTER>

</TD>
</TABLE>

</BASEFONT>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -