Re: How do draw new window immideately?

From: Michael Pearson (michaelp_extrajunktoremove_at_televox.com)
Date: 03/04/04


Date: Wed, 3 Mar 2004 19:09:40 -0600

What you can do is output the "loading" in a <DIV> or <Span> tag, and then
do response.flush.
Then after the flush start your long running process. After that process is
complete write out some javascript that will hide that <DIV> tag
(style.display = 'none')

Michael
"Olav Tollefsen" <x@y.com> wrote in message
news:OcUkhAYAEHA.640@TK2MSFTNGP09.phx.gbl...
> I have a web form which does some time consuming operation (~ 10 seconds)
in
> Page_Load. This results in a stale window to the user until Page_Load is
> finished rendering the page.
>
> Is it possible to get the window to be drawn at once to the user, maybe
> displaying "Loading..." and then redraw the window again when the
processing
> is complete?
>
> Olav
>
>



Relevant Pages

  • Getting the coordinates of a piece of text with Javascript?
    ... I know you can find the coordinates of a tag inside the DOM, ... If the user highlights or selects text in a div or span can I get the ... javascript do I use to find that out? ...
    (comp.lang.javascript)
  • Re: Extract specific div element from page
    ... Or you could just use Javascript combined with PHP, just use javascript it's something like this document.getElementById('tagId').innerHtml that will give you the htmlof the <div> tag you specify. ... Group Members Site Fully Operational ...
    (php.general)
  • Re: node.innerHTML = ... not working in IE
    ... > any indication of how the javascript is interacting with the HTML. ... >> place the suggest_box div node right next to the textbox so ... > opening P tag encountered within a P element will imply that P element's ...
    (comp.lang.javascript)
  • Re: node.innerHTML = ... not working in IE
    ... > place the suggest_box div node right next to the textbox so ... So why not set the inner HTML before you insert the node (or use W3C DOM ... > thrown on line 10 in CODE SAMPLE 1): ... P element also has an optional closing tag, which may be implied by the ...
    (comp.lang.javascript)
  • Re: Adding rows to a table, works in Firefox, but not IE
    ... mark-up and they will be implied, the opening tag by any TR ... It sounds like the sort of thing that might come form someone familiarwith Java who has not understood that javascript is not Java. ... What is an inner function declaration? ... your assignment to it is an assignment to a property of the ...
    (comp.lang.javascript)