SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2005
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AJAX Uncaught Exception

    What does it mean when FF error console returns an "Uncaught Exception" while running my ajax script. It doesn't always happen, just sometimes.

    Thanks,
    e39m5

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,696
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    It depends on what the uncaught exception was.

    More information about the error and a page that we can test ideas on will mean we can help you a lot more.

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2005
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it a possibility that error is caused by a loader starting before a past load has finished (readyState = 4)?

    Thanks,
    e39m5

  4. #4
    SitePoint Enthusiast SoMBrA's Avatar
    Join Date
    Oct 2007
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to "reset" your request object after you finished with the processing, that will override your readystate back to 0.

    Try it and tell us if it worked

  5. #5
    SitePoint Evangelist
    Join Date
    Jun 2005
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how do i reset the request object?

    Thanks,
    e39m5

  6. #6
    SitePoint Enthusiast SoMBrA's Avatar
    Join Date
    Oct 2007
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just create a new xmlhttp request object on the same var


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
  •