473,657 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please wait ...message

Hi guys
I display one page in popup window...that fetches some data from sql and
perfom some calculation (tht approx 10 secs) and display result....
I am trying to display "Please wait ..."message while its performing
calculation...
I'm using the below code...that i have got from following link
http://aspfaq.com/show.asp?id=2498

but somehow it doesnt work and displays nothing....it display only for a
second before the actual result is displayed...

Below is my code snippet:

<%@LANGUAGE="VB SCRIPT"%>
<!-- #include file="common/constants.asp"--> 'tht containts sql
connection string
<!-- #include file="common/database.asp"--> ' contains one class to
perform to database and record set operation
<% Response.Buffer = True %>
<html>
<head>
<title>My Style - Plan Matrix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet " href="common/m8extranet.css" type="text/css">
</head>
<style>
..boxText {font-family:Arial; font-size:9pt; color:222222; font-weight:400;}
</style>
<body>
<script>
<!--
if (document.all)
{
document.write( "<span id=wxx>Please") ;
document.write( " wait...</span>");
}
//-->
</script>

<% Response.Flush( ) %>

<%
sql = "Select * From Phoneprice Order by phprice"
set rs = database.execut equery(sql)
sql = "Select * From Plancommi WHERE ptype='My Style' Order By planid"
set rs1 = database.execut equery(sql)
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr>
<td width="10%" class="header"> <div
align="right">< b>Plan</b></div></td>
<td width="9%" class="header"> <b>&nbsp;Matrix </b></td>
<td width="9%" bgcolor="#CFF2F E" class="topMenub ig"> <div
align="center"> <strong>My
Style 16</strong></div></td>
<td width="9%" bgcolor="#AEAEF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 20</strong></div></td>
<td width="9%" bgcolor="#FFD9D 7" class="topMenub ig"> <div
align="center"> <strong>My
Style 30</strong></div></td>
<td width="9%" bgcolor="#DBB7F F" class="topMenub ig"> <div
align="center"> <strong>My
Style 40</strong></div></td>
<td width="9%" bgcolor="#FAE2A D" class="topMenub ig"> <div
align="center"> <strong>My
Style 50</strong></div></td>
<td width="9%" bgcolor="#FECBF D" class="topMenub ig"> <div
align="center"> <strong>My
Style 70</strong></div></td>
<td width="9%" bgcolor="#BBFFB B" class="topMenub ig"> <div
align="center"> <strong>My
Style 90</strong></div></td>
<td width="9%" bgcolor="#BFDFF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 150</strong></div></td>
<td width="9%" bgcolor="#D3D3A 9" class="topMenub ig"> <div
align="center"> <strong>My
Style 200</strong></div></td>
</tr>
<tr><td colspan="12">&n bsp;</td></tr>
<%
while not rs.eof
Response.write "<tr>"
Response.write "<td height=24 bgcolor=#DFDFDF align=center
class=boxText>" &rs("phname")&" </td>"
Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &rs("phmodel")& "</td>"
'Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &FormatCurrency (rs("phprice"), 2)&"</td>"
rs1.movefirst
cnt=1
while not rs1.eof
mystr = "tx_mar"&cn t
tmpSql = "Select * From IMEIBonus WHERE Phid="&rs("phid ")&" AND
PlanId="&rs1("p lanid")
'Response.write tmpSql
'response.End()
set rs_imei = database.execut equery(tmpSql)
If Not rs_imei.eof then
IMEIBonus = rs_imei("Bonus" )
else
IMEIBonus = 0
End If
myno = (rs1("commissio n") + IMEIBonus) -
(rs("phprice")+ Request.form(cs tr(mystr)))
If myno >= 0 Then
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>F ree</td>"
Else
myno = Abs(myno)
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>" &FormatCurrency (myno,0)&"</td>"
End If
set rs_imei = Nothing
rs1.movenext
cnt = cnt + 1
wend
rs.movenext
wend
%>
</table></td>
</tr>
</table>
<%
set rs= Nothing
set rs1 = Nothing
%>
<script>
<!--
if (document.all)
{
document.all("w xx").style.disp lay = 'none';
}
//-->
</script>
</body>
</html>

can any one help me??
Thanx in advance
dave
Jul 22 '05 #1
4 2581
(a) move the response.buffer line to BEFORE the <!--#include references.

(b) STOP NESTING RECORDSETS! STOP USING SELECT *! Use <th> instead of
<td..><strong > to reduce the weight of your HTML! Ugh, you will probably
eliminate the need for a please wait message if you spend some time making
this page more efficient. Please, please, please read
http://www.aspfaq.com/2424


On 3/1/05 10:13 PM, in article #v************* *@tk2msftngp13. phx.gbl, "dave"
<fo****@foo.net REMOVE> wrote:
Hi guys
I display one page in popup window...that fetches some data from sql and
perfom some calculation (tht approx 10 secs) and display result....
I am trying to display "Please wait ..."message while its performing
calculation...
I'm using the below code...that i have got from following link
http://aspfaq.com/show.asp?id=2498

but somehow it doesnt work and displays nothing....it display only for a
second before the actual result is displayed...

Below is my code snippet:

<%@LANGUAGE="VB SCRIPT"%>
<!-- #include file="common/constants.asp"--> 'tht containts sql
connection string
<!-- #include file="common/database.asp"--> ' contains one class to
perform to database and record set operation
<% Response.Buffer = True %>
<html>
<head>
<title>My Style - Plan Matrix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet " href="common/m8extranet.css" type="text/css">
</head>
<style>
.boxText {font-family:Arial; font-size:9pt; color:222222; font-weight:400;}

</style>
<body>
<script>
<!--
if (document.all)
{
document.write( "<span id=wxx>Please") ;
document.write( " wait...</span>");
}
//-->
</script>

<% Response.Flush( ) %>

<%
sql = "Select * From Phoneprice Order by phprice"
set rs = database.execut equery(sql)
sql = "Select * From Plancommi WHERE ptype='My Style' Order By planid"
set rs1 = database.execut equery(sql)
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr>
<td width="10%" class="header"> <div
align="right">< b>Plan</b></div></td>
<td width="9%" class="header"> <b>&nbsp;Matrix </b></td>
<td width="9%" bgcolor="#CFF2F E" class="topMenub ig"> <div
align="center"> <strong>My
Style 16</strong></div></td>
<td width="9%" bgcolor="#AEAEF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 20</strong></div></td>
<td width="9%" bgcolor="#FFD9D 7" class="topMenub ig"> <div
align="center"> <strong>My
Style 30</strong></div></td>
<td width="9%" bgcolor="#DBB7F F" class="topMenub ig"> <div
align="center"> <strong>My
Style 40</strong></div></td>
<td width="9%" bgcolor="#FAE2A D" class="topMenub ig"> <div
align="center"> <strong>My
Style 50</strong></div></td>
<td width="9%" bgcolor="#FECBF D" class="topMenub ig"> <div
align="center"> <strong>My
Style 70</strong></div></td>
<td width="9%" bgcolor="#BBFFB B" class="topMenub ig"> <div
align="center"> <strong>My
Style 90</strong></div></td>
<td width="9%" bgcolor="#BFDFF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 150</strong></div></td>
<td width="9%" bgcolor="#D3D3A 9" class="topMenub ig"> <div
align="center"> <strong>My
Style 200</strong></div></td>
</tr>
<tr><td colspan="12">&n bsp;</td></tr>
<%
while not rs.eof
Response.write "<tr>"
Response.write "<td height=24 bgcolor=#DFDFDF align=center
class=boxText>" &rs("phname")&" </td>"
Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &rs("phmodel")& "</td>"
'Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &FormatCurrency (rs("phprice"), 2)&"</td>"
rs1.movefirst
cnt=1
while not rs1.eof
mystr = "tx_mar"&cn t
tmpSql = "Select * From IMEIBonus WHERE Phid="&rs("phid ")&" AND
PlanId="&rs1("p lanid")
'Response.write tmpSql
'response.End()
set rs_imei = database.execut equery(tmpSql)
If Not rs_imei.eof then
IMEIBonus = rs_imei("Bonus" )
else
IMEIBonus = 0
End If
myno = (rs1("commissio n") + IMEIBonus) -
(rs("phprice")+ Request.form(cs tr(mystr)))
If myno >= 0 Then
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>F ree</td>"
Else
myno = Abs(myno)
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>" &FormatCurrency (myno,0)&"</td>"
End If
set rs_imei = Nothing
rs1.movenext
cnt = cnt + 1
wend
rs.movenext
wend
%>
</table></td>
</tr>
</table>
<%
set rs= Nothing
set rs1 = Nothing
%>
<script>
<!--
if (document.all)
{
document.all("w xx").style.disp lay = 'none';
}
//-->
</script>
</body>
</html>

can any one help me??
Thanx in advance
dave


Jul 22 '05 #2
thanx for prompt reply
now it works on localhost but funny thing when i upload to web server..it
doesnt work...
couldnt figure out whts going on
dave

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:BE4AA9ED.1 ACD%te*****@dna rtreb.noraa...
(a) move the response.buffer line to BEFORE the <!--#include references.

(b) STOP NESTING RECORDSETS! STOP USING SELECT *! Use <th> instead of
<td..><strong > to reduce the weight of your HTML! Ugh, you will probably
eliminate the need for a please wait message if you spend some time making
this page more efficient. Please, please, please read
http://www.aspfaq.com/2424


On 3/1/05 10:13 PM, in article #v************* *@tk2msftngp13. phx.gbl, "dave" <fo****@foo.net REMOVE> wrote:
Hi guys
I display one page in popup window...that fetches some data from sql and
perfom some calculation (tht approx 10 secs) and display result....
I am trying to display "Please wait ..."message while its performing
calculation...
I'm using the below code...that i have got from following link
http://aspfaq.com/show.asp?id=2498

but somehow it doesnt work and displays nothing....it display only for a
second before the actual result is displayed...

Below is my code snippet:

<%@LANGUAGE="VB SCRIPT"%>
<!-- #include file="common/constants.asp"--> 'tht containts sql
connection string
<!-- #include file="common/database.asp"--> ' contains one class to
perform to database and record set operation
<% Response.Buffer = True %>
<html>
<head>
<title>My Style - Plan Matrix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet " href="common/m8extranet.css" type="text/css">
</head>
<style>
.boxText {font-family:Arial; font-size:9pt; color:222222; font-weight:400;}
</style>
<body>
<script>
<!--
if (document.all)
{
document.write( "<span id=wxx>Please") ;
document.write( " wait...</span>");
}
//-->
</script>

<% Response.Flush( ) %>

<%
sql = "Select * From Phoneprice Order by phprice"
set rs = database.execut equery(sql)
sql = "Select * From Plancommi WHERE ptype='My Style' Order By planid"
set rs1 = database.execut equery(sql)
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr>
<td width="10%" class="header"> <div
align="right">< b>Plan</b></div></td>
<td width="9%" class="header"> <b>&nbsp;Matrix </b></td>
<td width="9%" bgcolor="#CFF2F E" class="topMenub ig"> <div
align="center"> <strong>My
Style 16</strong></div></td>
<td width="9%" bgcolor="#AEAEF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 20</strong></div></td>
<td width="9%" bgcolor="#FFD9D 7" class="topMenub ig"> <div
align="center"> <strong>My
Style 30</strong></div></td>
<td width="9%" bgcolor="#DBB7F F" class="topMenub ig"> <div
align="center"> <strong>My
Style 40</strong></div></td>
<td width="9%" bgcolor="#FAE2A D" class="topMenub ig"> <div
align="center"> <strong>My
Style 50</strong></div></td>
<td width="9%" bgcolor="#FECBF D" class="topMenub ig"> <div
align="center"> <strong>My
Style 70</strong></div></td>
<td width="9%" bgcolor="#BBFFB B" class="topMenub ig"> <div
align="center"> <strong>My
Style 90</strong></div></td>
<td width="9%" bgcolor="#BFDFF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 150</strong></div></td>
<td width="9%" bgcolor="#D3D3A 9" class="topMenub ig"> <div
align="center"> <strong>My
Style 200</strong></div></td>
</tr>
<tr><td colspan="12">&n bsp;</td></tr>
<%
while not rs.eof
Response.write "<tr>"
Response.write "<td height=24 bgcolor=#DFDFDF align=center
class=boxText>" &rs("phname")&" </td>"
Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &rs("phmodel")& "</td>"
'Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &FormatCurrency (rs("phprice"), 2)&"</td>"
rs1.movefirst
cnt=1
while not rs1.eof
mystr = "tx_mar"&cn t
tmpSql = "Select * From IMEIBonus WHERE Phid="&rs("phid ")&" AND
PlanId="&rs1("p lanid")
'Response.write tmpSql
'response.End()
set rs_imei = database.execut equery(tmpSql)
If Not rs_imei.eof then
IMEIBonus = rs_imei("Bonus" )
else
IMEIBonus = 0
End If
myno = (rs1("commissio n") + IMEIBonus) -
(rs("phprice")+ Request.form(cs tr(mystr)))
If myno >= 0 Then
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>F ree</td>"
Else
myno = Abs(myno)
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>" &FormatCurrency (myno,0)&"</td>"
End If
set rs_imei = Nothing
rs1.movenext
cnt = cnt + 1
wend
rs.movenext
wend
%>
</table></td>
</tr>
</table>
<%
set rs= Nothing
set rs1 = Nothing
%>
<script>
<!--
if (document.all)
{
document.all("w xx").style.disp lay = 'none';
}
//-->
</script>
</body>
</html>

can any one help me??
Thanx in advance
dave

Jul 22 '05 #3
Could be buffering is enabled in one place and disabled in the other. Could
be that your include files are different in the two places, and the ones
where it DOESN'T work set response.buffer = false (a stretch, I know, but
possible).

Tough to tell without being able to show us both environments.
On 3/1/05 11:48 PM, in article OT************* @TK2MSFTNGP10.p hx.gbl, "dave"
<fo****@foo.net REMOVE> wrote:
thanx for prompt reply
now it works on localhost but funny thing when i upload to web server..it
doesnt work...
couldnt figure out whts going on
dave

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:BE4AA9ED.1 ACD%te*****@dna rtreb.noraa...
(a) move the response.buffer line to BEFORE the <!--#include references.

(b) STOP NESTING RECORDSETS! STOP USING SELECT *! Use <th> instead of
<td..><strong > to reduce the weight of your HTML! Ugh, you will probably
eliminate the need for a please wait message if you spend some time making
this page more efficient. Please, please, please read
http://www.aspfaq.com/2424


On 3/1/05 10:13 PM, in article #v************* *@tk2msftngp13. phx.gbl,

"dave"
<fo****@foo.net REMOVE> wrote:
Hi guys
I display one page in popup window...that fetches some data from sql and
perfom some calculation (tht approx 10 secs) and display result....
I am trying to display "Please wait ..."message while its performing
calculation...
I'm using the below code...that i have got from following link
http://aspfaq.com/show.asp?id=2498

but somehow it doesnt work and displays nothing....it display only for a
second before the actual result is displayed...

Below is my code snippet:

<%@LANGUAGE="VB SCRIPT"%>
<!-- #include file="common/constants.asp"--> 'tht containts sql
connection string
<!-- #include file="common/database.asp"--> ' contains one class to
perform to database and record set operation
<% Response.Buffer = True %>
<html>
<head>
<title>My Style - Plan Matrix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet " href="common/m8extranet.css" type="text/css">
</head>
<style>
.boxText {font-family:Arial; font-size:9pt; color:222222; font-weight:400;}
</style>
<body>
<script>
<!--
if (document.all)
{
document.write( "<span id=wxx>Please") ;
document.write( " wait...</span>");
}
//-->
</script>

<% Response.Flush( ) %>

<%
sql = "Select * From Phoneprice Order by phprice"
set rs = database.execut equery(sql)
sql = "Select * From Plancommi WHERE ptype='My Style' Order By planid"
set rs1 = database.execut equery(sql)
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="0" >
<tr>
<td width="10%" class="header"> <div
align="right">< b>Plan</b></div></td>
<td width="9%" class="header"> <b>&nbsp;Matrix </b></td>
<td width="9%" bgcolor="#CFF2F E" class="topMenub ig"> <div
align="center"> <strong>My
Style 16</strong></div></td>
<td width="9%" bgcolor="#AEAEF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 20</strong></div></td>
<td width="9%" bgcolor="#FFD9D 7" class="topMenub ig"> <div
align="center"> <strong>My
Style 30</strong></div></td>
<td width="9%" bgcolor="#DBB7F F" class="topMenub ig"> <div
align="center"> <strong>My
Style 40</strong></div></td>
<td width="9%" bgcolor="#FAE2A D" class="topMenub ig"> <div
align="center"> <strong>My
Style 50</strong></div></td>
<td width="9%" bgcolor="#FECBF D" class="topMenub ig"> <div
align="center"> <strong>My
Style 70</strong></div></td>
<td width="9%" bgcolor="#BBFFB B" class="topMenub ig"> <div
align="center"> <strong>My
Style 90</strong></div></td>
<td width="9%" bgcolor="#BFDFF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 150</strong></div></td>
<td width="9%" bgcolor="#D3D3A 9" class="topMenub ig"> <div
align="center"> <strong>My
Style 200</strong></div></td>
</tr>
<tr><td colspan="12">&n bsp;</td></tr>
<%
while not rs.eof
Response.write "<tr>"
Response.write "<td height=24 bgcolor=#DFDFDF align=center
class=boxText>" &rs("phname")&" </td>"
Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &rs("phmodel")& "</td>"
'Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &FormatCurrency (rs("phprice"), 2)&"</td>"
rs1.movefirst
cnt=1
while not rs1.eof
mystr = "tx_mar"&cn t
tmpSql = "Select * From IMEIBonus WHERE Phid="&rs("phid ")&" AND
PlanId="&rs1("p lanid")
'Response.write tmpSql
'response.End()
set rs_imei = database.execut equery(tmpSql)
If Not rs_imei.eof then
IMEIBonus = rs_imei("Bonus" )
else
IMEIBonus = 0
End If
myno = (rs1("commissio n") + IMEIBonus) -
(rs("phprice")+ Request.form(cs tr(mystr)))
If myno >= 0 Then
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>F ree</td>"
Else
myno = Abs(myno)
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>" &FormatCurrency (myno,0)&"</td>"
End If
set rs_imei = Nothing
rs1.movenext
cnt = cnt + 1
wend
rs.movenext
wend
%>
</table></td>
</tr>
</table>
<%
set rs= Nothing
set rs1 = Nothing
%>
<script>
<!--
if (document.all)
{
document.all("w xx").style.disp lay = 'none';
}
//-->
</script>
</body>
</html>

can any one help me??
Thanx in advance
dave



Jul 22 '05 #4
I copied two files which i was using in include statement just to make sure
both side same code..
also tried with response.buffer = false..but got error msg saying
buffer must be on
dave

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:BE4AB299.1 ADE%te*****@dna rtreb.noraa...
Could be buffering is enabled in one place and disabled in the other. Could be that your include files are different in the two places, and the ones
where it DOESN'T work set response.buffer = false (a stretch, I know, but
possible).

Tough to tell without being able to show us both environments.
On 3/1/05 11:48 PM, in article OT************* @TK2MSFTNGP10.p hx.gbl, "dave" <fo****@foo.net REMOVE> wrote:
thanx for prompt reply
now it works on localhost but funny thing when i upload to web server..it doesnt work...
couldnt figure out whts going on
dave

"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:BE4AA9ED.1 ACD%te*****@dna rtreb.noraa...
(a) move the response.buffer line to BEFORE the <!--#include references.
(b) STOP NESTING RECORDSETS! STOP USING SELECT *! Use <th> instead of
<td..><strong > to reduce the weight of your HTML! Ugh, you will probably eliminate the need for a please wait message if you spend some time making this page more efficient. Please, please, please read
http://www.aspfaq.com/2424


On 3/1/05 10:13 PM, in article #v************* *@tk2msftngp13. phx.gbl,

"dave"
<fo****@foo.net REMOVE> wrote:

Hi guys
I display one page in popup window...that fetches some data from sql and perfom some calculation (tht approx 10 secs) and display result....
I am trying to display "Please wait ..."message while its performing
calculation...
I'm using the below code...that i have got from following link
http://aspfaq.com/show.asp?id=2498

but somehow it doesnt work and displays nothing....it display only for a second before the actual result is displayed...

Below is my code snippet:

<%@LANGUAGE="VB SCRIPT"%>
<!-- #include file="common/constants.asp"--> 'tht containts sql
connection string
<!-- #include file="common/database.asp"--> ' contains one class to
perform to database and record set operation
<% Response.Buffer = True %>
<html>
<head>
<title>My Style - Plan Matrix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet " href="common/m8extranet.css" type="text/css">
</head>
<style>
.boxText {font-family:Arial; font-size:9pt; color:222222;

font-weight:400;}

</style>
<body>
<script>
<!--
if (document.all)
{
document.write( "<span id=wxx>Please") ;
document.write( " wait...</span>");
}
//-->
</script>

<% Response.Flush( ) %>

<%
sql = "Select * From Phoneprice Order by phprice"
set rs = database.execut equery(sql)
sql = "Select * From Plancommi WHERE ptype='My Style' Order By planid"
set rs1 = database.execut equery(sql)
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><table width="100%" border="0" cellspacing="1" cellpadding="0" > <tr>
<td width="10%" class="header"> <div
align="right">< b>Plan</b></div></td>
<td width="9%" class="header"> <b>&nbsp;Matrix </b></td>
<td width="9%" bgcolor="#CFF2F E" class="topMenub ig"> <div
align="center"> <strong>My
Style 16</strong></div></td>
<td width="9%" bgcolor="#AEAEF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 20</strong></div></td>
<td width="9%" bgcolor="#FFD9D 7" class="topMenub ig"> <div
align="center"> <strong>My
Style 30</strong></div></td>
<td width="9%" bgcolor="#DBB7F F" class="topMenub ig"> <div
align="center"> <strong>My
Style 40</strong></div></td>
<td width="9%" bgcolor="#FAE2A D" class="topMenub ig"> <div
align="center"> <strong>My
Style 50</strong></div></td>
<td width="9%" bgcolor="#FECBF D" class="topMenub ig"> <div
align="center"> <strong>My
Style 70</strong></div></td>
<td width="9%" bgcolor="#BBFFB B" class="topMenub ig"> <div
align="center"> <strong>My
Style 90</strong></div></td>
<td width="9%" bgcolor="#BFDFF F" class="topMenub ig"> <div
align="center"> <strong>My
Style 150</strong></div></td>
<td width="9%" bgcolor="#D3D3A 9" class="topMenub ig"> <div
align="center"> <strong>My
Style 200</strong></div></td>
</tr>
<tr><td colspan="12">&n bsp;</td></tr>
<%
while not rs.eof
Response.write "<tr>"
Response.write "<td height=24 bgcolor=#DFDFDF align=center
class=boxText>" &rs("phname")&" </td>"
Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &rs("phmodel")& "</td>"
'Response.write "<td bgcolor=#DFDFDF align=center
class=boxText>" &FormatCurrency (rs("phprice"), 2)&"</td>"
rs1.movefirst
cnt=1
while not rs1.eof
mystr = "tx_mar"&cn t
tmpSql = "Select * From IMEIBonus WHERE Phid="&rs("phid ")&" AND
PlanId="&rs1("p lanid")
'Response.write tmpSql
'response.End()
set rs_imei = database.execut equery(tmpSql)
If Not rs_imei.eof then
IMEIBonus = rs_imei("Bonus" )
else
IMEIBonus = 0
End If
myno = (rs1("commissio n") + IMEIBonus) -
(rs("phprice")+ Request.form(cs tr(mystr)))
If myno >= 0 Then
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>F ree</td>"
Else
myno = Abs(myno)
Response.write "<td align=center bgcolor=#"&rs1( "bgcol")&"
class=boxText>" &FormatCurrency (myno,0)&"</td>"
End If
set rs_imei = Nothing
rs1.movenext
cnt = cnt + 1
wend
rs.movenext
wend
%>
</table></td>
</tr>
</table>
<%
set rs= Nothing
set rs1 = Nothing
%>
<script>
<!--
if (document.all)
{
document.all("w xx").style.disp lay = 'none';
}
//-->
</script>
</body>
</html>

can any one help me??
Thanx in advance
dave


Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8486
by: Jason . | last post by:
I have seen a few articles with a javascript example but it is not working for me. The server side code is processed first and then the javascript so I basically get my page loading splash screen displayed for a split second and then my page I am navigating to. How do I display the "Please Wait..." before the server side code kicks in? Thanks.
3
9858
by: Danny Masti | last post by:
Hello, I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the hidden div with the "Please Wait Message". It works fine. But if I replace the "Please Wait Message" with an animated gif - the gif shows up BUT it does not animate. How do I make the gif animate? THIS WORKS (initially hidden):-
0
1987
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from the DB I am using a DIV with a please wait message which is removed once the page is loaded. In addition I am using a global error handling using the Application_Error void in the Global.asax file. when the application is loading a page which...
3
4626
by: John Dalberg | last post by:
Hi I have a form that opens a new window for the results. Because the results might take a few seconds due to server processing, I would like to display a message "please wait" in the new window, erase that message when the processing is done and show the results. How is this done? John Dalberg
3
5718
by: Lucas Tam | last post by:
Does anyone have easy to use sample code to build a "Please wait... processing data screen?" I'm interested in something like Expedia's search page Thanks. -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying.
5
1703
by: Chris | last post by:
Hi, I was following the article http://msdn.microsoft.com/msdnmag/issues/03/12/DesignPatterns/default.aspx I got everything working until I go the the Progress bar section. Here is where I am stuck. This is the vb.net code for the wait.aspx page Public redirectPage As String = "" Public secondsToWait As String = "0"
4
2048
by: Anonymous | last post by:
Hello, I am generating a pdf file via some code. It takes approx. 30 secs to create the pdf and to show it to the user. During that time, I want to show a message like "Please Wait...". Ideally I would like to show only this message in some kind of messagebox and show the pdf page only when the processing has been finished. However I dont know how to do that. What I tried was the following:
6
5707
by: Jeremy Chapman | last post by:
I have a button on my page which when clicked redirects to another page. on the page load of the page that I've redirected to, there is a long query. What I want to do is with dhtml, display test in the center of the screen saying 'please wait..' so that the text displays until the new page is returned. My problem is that the html is not visually updated because the browser is busy waiting for the http request to complete. Is there any...
1
2363
by: =?Utf-8?B?Sm9obiBXYWxrZXI=?= | last post by:
Hi, I have a webpage designed with asp.net 2.0. Is there a way to display a "please wait" message to the screen horizontally centered and veritcally 20px from the VISIBLE top of the page, regardless of what kind of scrolling the user has done? I am currently displaying a "please wait" message (the DIV section shown below, which i'm showing/hiding) when the user clicks save, but the user is
0
8385
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.