SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Loading message

  1. #1
    SitePoint Enthusiast minus's Avatar
    Join Date
    Jan 2002
    Location
    Pittsburgh, PA, USA
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading message

    I would like to display a simple loading message.

    Scenery: Say my web page has two frames, one for navigation, one for content. Clicking on an item in the navigation part triggers a request to be sent to the server. The result set would then be sent back and displayed within the content frame.

    [U]My problem:[/] Processing the request takes time to the server. Thus, I want a loading message to be displayed in the meantime within the content frame.

    Has anyone a hint?

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This has come up before, the best way to do this is in javascript

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2001
    Location
    Oregon, USA
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Javascript or Flash.... depending on what you want to do.

  4. #4
    SitePoint Enthusiast minus's Avatar
    Join Date
    Jan 2002
    Location
    Pittsburgh, PA, USA
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well. Thanks for your great help.

    I figured I needed two messages:

    one that was displayed once the request is sent to the server - this is done by displaying another layer;

    and another one, when the response is being generated by the server (since some headers come out first with the rest of the page being generated, you need a layer that disappears when the page is fully loaded by the browser.)

    Should you be interested by a piece of code, just whistle.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •