invisible page???

Discussion in 'ASP General' started by yabba, Feb 27, 2005.

  1. yabba

    yabba Guest

    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, Feb 27, 2005
    #1
    1. Advertising

  2. yabba

    Roland Hall Guest

    "yabba" wrote in message news:...
    : 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
     
    Roland Hall, Feb 27, 2005
    #2
    1. Advertising

  3. 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" <> ha scritto nel messaggio
    news:...
    > 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.
    >
     
    andrea azzini, Feb 27, 2005
    #3
  4. yabba

    yabba Guest

    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$>,
    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" <> ha scritto nel messaggio
    >news:...
    >> 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, Feb 27, 2005
    #4
  5. 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 #,
    "yabba" <> 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$>,
    > 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" <> ha scritto nel messaggio
    >> news:...
    >>> 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.
    >>>

    >>
    >>

    >
     
    Aaron [SQL Server MVP], Feb 27, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    2
    Views:
    316
    Bob Lehmann
    Sep 7, 2004
  2. walanta
    Replies:
    4
    Views:
    3,263
    Rob Meade
    Jun 1, 2006
  3. Andy B
    Replies:
    5
    Views:
    607
    Andy B
    May 29, 2008
  4. Replies:
    2
    Views:
    1,322
    marss
    Jun 27, 2008
  5. Matt
    Replies:
    3
    Views:
    126
    Bob Lehmann
    Sep 7, 2004
Loading...

Share This Page