You can use dynamic HTML. Here is some pseudo-code that will work in IE,
you will need to augment it a bit if you need to work in
Netscape/Mozilla/Firefox etc.
<div id=main style='display:none'>
<!-- put all your body here -->
</div>
<script>
//here is your logic
if (redirect)
{
location.replace("newpage.asp");
}
else
{
document.getElementById('main').style.display = '';
}
</script>
Not really ASP related anymore. If you want further help with this kind of
technique, please see a client-side newsgroup, e.g.
Microsoft.public.scripting.jscript ...
On 2/27/05 10:53 AM, in article #s**************@TK2MSFTNGP15.phx.gbl,
"yabba" <RE*********************@hotmail.com> wrote:
yes... exactly...
that is how it is working now but page #1 flashes up for a sec... so...
is there a way to keep page #1 invisible till page #2 gets to the client?
thanks
In article <rg********************@twister2.libero.it>,
an******@andylong.cjb.net says...
Do you mean something like this:
- client requests the page
- server sends static page with Javascript
- Javascript runs on client machine and gathers the needed data
- Javascript sends the data back to server
- Server replies with the actual page to show
?
"yabba" <RE*********************@hotmail.com> ha scritto nel messaggio
news:Or*************@tk2msftngp13.phx.gbl... is there a way to keep a client page invisible for a brief moment while it
is checking a few things on the client with javascript?
once checked it may need to redirect to another page...
currently the 1st page flashes up just before the redirection... looks a
little messy.
any help or ideas appreciated.