DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: your opinion - would ajax be helpful for my app?

  1. #1
    Join Date
    Dec 2006

    your opinion - would ajax be helpful for my app?

    Hi, I have a Perl web application that consists of an HTML table structure and a lot of SSIs. The page is user-interaction free; it constantly refreshes (HTML refresh) to give me status of my servers (it's an intranet app.) It is effective, but a bit slow since on every refresh it takes about 8 seconds or so for all the perl scripts to be executed and then their output included in my HTML.

    I know that ajax can reload server-side information without refreshing the page...your opinion: would ajax give my app a significant performance boost?

    thanks! ^^

  2. #2
    Join Date
    Dec 2006
    I don't think Ajax would help much if most of the refresh time is spent gathering the information. I think it would help if there's a significant amount of static content on the page, and it just needs to update a small portion. (E.g. if it shows server statistics for yesterday, last week, last month, year-to-date, etc. that don't need updating.)

  3. #3
    Join Date
    Mar 2006
    How ajaxs works is it sends out a request asychronously then when the response is recieved it is written to the screen without a refresh. You could in theory create a function that sends a request ever n seconds and then updates the information with the response. You will still experiance the server side lag (8 secs) but you won't nes notice it because the page is not held in limbo till the request is processed. A minor downside would be you may not have the most "up to date" info as a request could be processing and not yet be displayed. To avoid this you can add a request loading area that is activitated when the readystate changes.

    Hope that helps

Similar Threads

  1. Replies: 2
    Last Post: 10-12-2006, 03:40 AM
  2. New forum + some AJAX links
    By Lori in forum AJAX
    Replies: 0
    Last Post: 02-09-2006, 02:26 PM
  3. How to make App B modal in App A?
    By Måns in forum VB Classic
    Replies: 2
    Last Post: 11-11-2000, 06:17 PM
  4. How to make App B modal in App A?
    By Måns in forum VB Classic
    Replies: 0
    Last Post: 11-08-2000, 08:28 AM
  5. Re: discover whether VB App is in Run mode.
    By Michael Culley in forum VB Classic
    Replies: 3
    Last Post: 09-17-2000, 11:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center