OutFront Forums
     Home    Register     Search      Help      Login    

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

Sponsors
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

 

progress bar

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP, PHP, and Database >> progress bar
Page: [1]
 
kitty6

 

Posts: 165
Joined: 10/15/2005
Status: offline

 
progress bar - 3/23/2009 6:43:41   
I'm trying to use the following code as a progress bar. Can you tell me where on my asp page the code/s should go? I would like the bar to appear while the page is building and go away when it is done. Thanks.
http://www.dynamicdrive.com/dynamicindex11/xpprogressbar.htm
ou812

 

Posts: 1705
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: progress bar - 3/23/2009 9:58:53   
Hard to tell without seeing your page. But perhaps when you load the page, in the body tag (http://www.w3schools.com/jsref/jsref_onload.asp) , use the var.showBar() then just before your last operation use the var.hideBar()

_____________________________

-brian

Black Holes suck.

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to kitty6)
kitty6

 

Posts: 165
Joined: 10/15/2005
Status: offline

 
RE: progress bar - 3/23/2009 13:00:31   
Here is my page. Could you show me where that code should go? Thank you very much!

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<table width="59%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b><font size="2">Item</font></b></th>
<th ALIGN="LEFT"><b><font size="2">Field1</font></b></th>
<th ALIGN="LEFT"><b><font size="2">Price</font></b></th>
<th ALIGN="LEFT"><b><font size="2">Description</font></b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-columnnames="ItemID,CustomField1,BaseSellingPrice,UseDescription" s-columntypes="3,202,5,202" s-dataconnection="Database1" b-tableformat="TRUE" b-menuformat="FALSE" s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE" b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE" i-listformat="0" b-makeform="FALSE" s-recordsource="test" s-displaycolumns="ItemID,CustomField1,BaseSellingPrice,UseDescription" s-criteria s-order s-sql="SELECT * FROM test" b-procedure="FALSE" clientside suggestedext="asp" s-defaultfields s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="0" botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc" u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the start of a Database Results region.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM test"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=4 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=0
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&ItemID=3&CustomField1=202&BaseSellingPrice=5&UseDescription=202&"
fp_iDisplayCols=4
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="42408" --><tr>
<td><font size="2">
<!--webbot bot="DatabaseResultColumn" s-columnnames="ItemID,CustomField1,BaseSellingPrice,UseDescription" s-column="ItemID" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ItemID<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"ItemID")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="15976" --></font></td>
<td><font size="2">
<!--webbot bot="DatabaseResultColumn" s-columnnames="ItemID,CustomField1,BaseSellingPrice,UseDescription" s-column="CustomField1" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>CustomField1<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"CustomField1")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="32074" --></font></td>
<td><font size="2">
<!--webbot bot="DatabaseResultColumn" s-columnnames="ItemID,CustomField1,BaseSellingPrice,UseDescription" s-column="BaseSellingPrice" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>BaseSellingPrice<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"BaseSellingPrice")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="41182" --></font></td>
<td><font size="2">
<!--webbot bot="DatabaseResultColumn" s-columnnames="ItemID,CustomField1,BaseSellingPrice,UseDescription" s-column="UseDescription" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>UseDescription<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"UseDescription")%><!--webbot bot="DatabaseResultColumn" endspan i-checksum="44960" --></font></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="0" clientside tag="TBODY" preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr>" startspan --><!--#include file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="62730" --></tbody>
</table>

</body>

</html>

(in reply to ou812)
ou812

 

Posts: 1705
Joined: 1/5/2002
From: San Diego
Status: offline

 
RE: progress bar - 3/24/2009 0:01:29   
Well, I'm not a DRW person at all, so not 100% sure. For starting it I would change your body statement, as I provided in the link.
Change:
<body>
to this:
<body onload="var.showBar()">

It looks like your query is going to run pretty darn quick so you may not see much, but I would place the turning off of progress bar at the end.

Change:
</body>
to something like this:
<script type="text/javascript">
var.hideBar()
</script>
</body>

I didn't test it out, but it should be something close to this. You'll also need to link in the external JS, as describe on the dynamic drive page, and place the code where ever you want the actual bar to display in your HTML.



_____________________________

-brian

Black Holes suck.

EnterpriseDB: Enterprise-class relational database management system
PostgreSQL: The world's most advanced open source database

(in reply to kitty6)
Page:   [1]

All Forums >> Web Development >> ASP, PHP, and Database >> progress bar
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts