Results 1 to 11 of 11

Thread: Dynamic changing of response

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    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?

  2. #2
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    not with asp,once it generate html, it's too late,
    you would have to use javascript or something else!!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    OK. Any ideas in Java- or VBasic- script?

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    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.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    Just call the page again
    I don't think I will be able to load data continuously while refreshing the page.

    How can I make some applet? In VB?

  6. #6
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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?
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    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.

  8. #8
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 1999
    Location
    Prague, Czech Republic
    Posts
    350
    Yes, that would be good. Could you suggest a bit of code?

  10. #10
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    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!!

  11. #11
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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>
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width