-
November 28th, 2008, 09:14 AM
#1
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 04:17 AM.
Crash-test your Opera here
-
December 4th, 2008, 09:46 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|