SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    Stuttgart / Düsseldorf / Brighton
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    show animation while waiting for new page to load

    Hi,

    I've got a search page, which takes quite long to produce results, so when people submit the search form (click search button) I would like to display a 'loading' animation until the results page loads.

    I would like to achieve this via JavaScript if possible.

    What's important here is that once the search button is clicked the new search loading page does not prevent the posted search query from failing.

    (expedia and other sites do something similar).

    Any Ideas, hints? Can I use the YUI to do this?

    Thanks!

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Give us a link to the search page.

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    Stuttgart / Düsseldorf / Brighton
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's the link -

    http://www.mincapartments.com/

  4. #4
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if I know the best way, but here is a demo for a simple idea.

    While doing this I noticed that in Opera 9.01, if onunload is defined, the script stops executing.

    Maybe someone else has a better suggestion.


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
  •