Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question How to use the gif image that says 'Loading'

    I have just finished a page whose content is generated via a couple of rss feeds.

    However, it takes about 20 seconds for the parser to retrieve all the content, and till then, the page shows blank. (It loads all at once when all the data is retrieved.)

    I need to use a gif image that says 'loading' in order not to make the visitor think that the page is empty.

    Can you please advise a script which will display that gif image until when the parser gets its job done?

    Thanks!

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    A simple anwser would be to include a <meta refresh tag to redirect the user. Another good idea would be to cache the rss data locally and read from the cache. That way, you only have the http requests ever 30 minutes instead of every page load. You could use either a database or a file system to cache the files.

    Just some ideas.

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    But I am looking for a way which will help the 'loading image display process' syncronize with the 'fetch process'.

    Because these scripts have to talk to each other in order for the ''loading image display process' to end JUST WHEN the fetching is complete.


  •  

    Posting Permissions

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