This is a caching problem that only occurs in Internet Explorer. Your callback(response)
function assigns the node elements to the xml_nodes
variable. These nodes are a part of the response
which is a part of the XMLHttpRequest
, which gets disposed because you have no pointers to it.
The buttonClick
function will iterate over the xml_nodes
that are connected to disposed XMLHttpRequest's. And these are disposed because you have no pointers to it, and are therefore invalid objects.
A simple workaround will be caching your requests in an array. However this will result in large amounts of unwanted memory usage. You should create objects from the xml response and store them. These new objects won't have any pointers to the responseXML and are therefore valid objects.
Hope this helped, had the same problem to :)