SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2007
    Posts
    242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ajax Request Code

    Hello. I am new to Ajax. I want to retrieve a big xml file from my server. But to handle all ajax cases (success, failure, not found, slow connection etc.) and one should write a lot of code for handling all cases.

    I dont know actually well Ajax and how to code for all possible cases.Especially I want to cancel ajax request after 30 secons if connection didnt get the xml file. On other failure cases browser should alert a notification. Is there any pre-written ajax code that can I use for my case?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

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
  •