SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 28 of 28
  1. #26
    SitePoint Addict Limes102's Avatar
    Join Date
    Sep 2006
    Location
    North Wales
    Posts
    242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah right. So it was the session_start that was causing the problem

    The session_write_close() will come in really handy. Thanks


    Aaron

  2. #27
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    Italy
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi,
    just a quick email to update you on my findings. in the end the only way NOT to crash the addon has been to use onreadystatechange the as shwon here below:
    Code JavaScript:
    xmlhttp.open("GET", "test.txt",true);
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) {
            ...
        }
    }
    xmlhttp.send(null);

  3. #28
    SitePoint Addict Limes102's Avatar
    Join Date
    Sep 2006
    Location
    North Wales
    Posts
    242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Although you did show your code, I didn't notice that you were doing it synchronously xD

    Async, which is what you're doing, is usually best because it seems to run it as a new thread... so things don't crash


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
  •