For Programmers: Free Programming Magazines  


Home > Archive > ASP > February 2005 > invisible page???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author invisible page???
yabba

2005-02-27, 8:55 am

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.

Roland Hall

2005-02-27, 8:55 am

"yabba" wrote in message news:OrgTACLHFHA.904@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


andrea azzini

2005-02-27, 3:55 pm

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" <REMOVETHISyabbadoo_2004@hotmail.com> ha scritto nel messaggio
news:OrgTACLHFHA.904@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.
>



yabba

2005-02-27, 3:55 pm

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 <rglUd.53861$QG6.973741@twister2.libero.it>,
andylong@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" <REMOVETHISyabbadoo_2004@hotmail.com> ha scritto nel messaggio
>news:OrgTACLHFHA.904@tk2msftngp13.phx.gbl...
>is
>
>


Aaron [SQL Server MVP]

2005-02-27, 3:55 pm

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 #szA0ROHFHA.3196@TK2MSFTNGP15.phx.gbl,
"yabba" <REMOVETHISyabbadoo_2004@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 <rglUd.53861$QG6.973741@twister2.libero.it>,
> andylong@andylong.cjb.net says...
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com