Hello all.
I have a strange problem that I cant' solve after hours of googling. The way my web application is built is not very optimal, but I can't do anything about this right now.
I have made a User Control in C#. This usercontrol is hosted by a aspx-page that are inside an iframe and this page is inside a frame again. (Not optimal).
But I think the only important thing is the outer frame. The hosting page there is on another domain than the other pages/parts.
Inside this frame is my code. I have a jquery scripts that updates the data when it detects new data on the server. To get the data I use jquery-ajax.
var indexURL = "/data/indexProxy.aspx";
__LOG("Lets get the XML");
$.ajax({
url: indexURL,
type: 'GET',
dataType: 'xml',
contentType: "text/xml; charset=\"utf-8\"",
error: function(request, error) {
alert('Error loading XML document' + request + error);
},
success: function(xml) {
__LOG("ajax success...");
OnSucceededXml(xml);
}
});
The __LOG function just write to the firebug console.
So the this code runs great until something happends. Not quite sure how it happens but sometimes when the function fails or gets intrrupted, it just stops working. I think it's related to page-reloads inside the ajax function.
After this happends the success function never gets trigged. In the firebug consule, I can see the "Lets get the XML" message, I can see the ajax-call is triggers and returns 200 or 304(not modified). But the __LOG inside the success is not triggered nor the function.
To make it work again I have to restart firefox completely and sometimes empty the cache.
If I open the page that is inside the frame of the other domian, outside the frame, everything works again, but I can't really do this as its part of the app.
Anyone experienced something simular? Also I don't thing this is releated to jquery, as I have expriensed some thing simmular in older scripts.
Thanks
Endre