Cross-Frame SyncedXmlHttpRequest makes Opera crash
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Cross-Frame SyncedXmlHttpRequest makes Opera crash

  1. #1
    Join Date
    Nov 2008
    Posts
    6

    Cross-Frame SyncedXmlHttpRequest makes Opera crash

    Hi,

    Please help! The following set of methods crash Opera ((

    You can try it here: Astana Translations Group, http://interpret.astana-translation.ath.cx

    Code:
    function do1()
    {
     var http = dohttp(); // gets xmlhttp object
     
     http.open("GET", "file.xml", false); // making it synced as some browsers don't get everything when asynced
     http.onreadystatechange = function()
     {
      if(http.readyState == 4 && (http.status == 200 || http.status == 304))
      {
       window.parent.frames.mheader.document.write(http.responseText);
    
       do2(); // next request
      }
     }
    
     http.send();
    }
    
    function do2()
    {
     var http = dohttp(); // everything is the same as above only the target frame is different
     
     http.open("GET", "file2.xml", false);
     http.onreadystatechange = function()
     {
      if(http.readyState == 4 && (http.status == 200 || http.status == 304))
      {
       window.parent.frames.mbodydocument.write(http.responseText);
    
       do3(); // next one
      }
     }
    
     http.send(); // CRASH!!!
    }
    any help is much appreciated
    Last edited by JetCoder; November 30th, 2008 at 03:17 AM.
    Crash-test your Opera here

  2. #2
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002
    Posts
    10,875

    Re: Cross-Frame SyncedXmlHttpRequest makes Opera crash

    Have you tried any form of debugging utilities...such as Firebug?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center