invisible page???

Y

yabba

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.
 
R

Roland Hall

in message : 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.

Once the client gets the page, ASP is done.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
A

andrea azzini

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

?
 
Y

yabba

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
 
A

Aaron [SQL Server MVP]

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 ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top