Is it possible to change the Reponse.Write parameters if they were already sent - to change the text on a page. For example displaying percentage of loaded data... and delete it?
Printable View
Is it possible to change the Reponse.Write parameters if they were already sent - to change the text on a page. For example displaying percentage of loaded data... and delete it?
not with asp,once it generate html, it's too late,
you would have to use javascript or something else!!
OK. Any ideas in Java- or VBasic- script?
Just call the page again and set the choices you want via an option or other selection method and pass the new Querystring to the same page.
I don't think I will be able to load data continuously while refreshing the page.Quote:
Just call the page again
How can I make some applet? In VB?
What are you trying to do?
What kind of data are you loading?
Is it necessary to display the page before the data is loaded?
I am searching and collecting some data from different files, and it takes too long. Besides, the result is formated in table, so IE waits until all of the data are loaded.
There are two solutions - speed up the databases searching, maybe displaying the results immediately will be sufficient. But I don't want to abandon the table.
Or to display some status line writing what is the computer doing.
You could create a progress bar with a table and a little bit of javascript to update the status of the progress bar every so many lines in your code.
Yes, that would be good. Could you suggest a bit of code?
you cant change the color of a cell in NN,with MSIE you
can use innercell to color the color inside,but
i think the to do it with be with DHTML, that way it would
compatible with both MSIE & NN!
good luck!!
Code:<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=JavaScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function updatePBar(amount)
{
window.alert(amount);
switch(amount)
{
case 25:
document.all.cell1.style.backgroundColor='red';
window.alert("25%");
break;
case 50:
document.all.cell2.style.backgroundColor='red';
window.alert("50%");
break;
case 75:
document.all.cell3.style.backgroundColor='red';
window.alert("75%");
break;
case 100:
document.all.cell4.style.backgroundColor='red';
window.alert("100%");
break;
}
}
function window_onload() {
var i;
var bar;
window.alert(bar);
for( bar=25; bar < 101; bar+=25)
{
for( i=0; i<50000; i++){}
updatePBar(bar);
}
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<TABLE width=800px height=25px border=2 cellspacing=0 cellpadding=0>
<TR>
<TD id=cell1 bgcolor=transparent width=200px></TD>
<TD id=cell2 bgcolor=transparent width=200px></TD>
<TD id=cell3 bgcolor=transparent width=200px></TD>
<TD id=cell4 bgcolor=transparent width=200px></TD>
</TR>
</TABLE>
</BODY>
</HTML>