By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,319 Members | 1,963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,319 IT Pros & Developers. It's quick & easy.

invisible page???

P: n/a
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.

Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"yabba" wrote in message 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.

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
Jul 22 '05 #2

P: n/a
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.

Jul 22 '05 #3

P: n/a
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.



Jul 22 '05 #4

P: n/a
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.



Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.