SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Phil-man's Avatar
    Join Date
    Nov 2000
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Should I use Ajax for this?

    Hi. I have a situation where a PHP-generated page depends on several processes, at least one of which takes a long time to run. As a result, only part of the page loads and then it hangs for a while until the slow process has completed and sends the results.

    I want to be able to quickly display a full web page with the information that is quickly retrieved, possibly including a "Please wait..." message in the appropriate spot, and then have the "slow" content appear when it's done. Is this something I should use Ajax for? I've never done anything in Ajax, but I'm not sure how else to do this.

    Any help would be greatly appreciated. Thanks!

  2. #2
    SitePoint Wizard jimbo_dk's Avatar
    Join Date
    May 2005
    Location
    Singapore
    Posts
    1,261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Assuming that you have optimized your server-side code, AJAX would be the best way to approach the problem.
    Winners Respond. Losers React.
    Singapore Web Designer


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
  •