#936 closed bug (fixed)
Rework xmlhttp usage to poll object instead of attaching onreadystatechange handler
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ajax | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
As we all know the IE GC is at best a-royal-piece-of-garbage (pun intended), especially when it comes to closures and event handling. By attaching javascript to an ActiveX object (any DOM element and the XMLHttpRequest object) and then referring to the object itself one runs the risk of fcking the GC.
There are several tricks that prevent (or lessen the effects) this by variable reassigning and so on, but why not circumvent that entirely? Alex Russell (Dojo fame) posted a little about it at http://alex.dojotoolkit.org/?p=528 and I think it makes sense. By observing the request rather then trying to rig it one can escape the death trap known as the IE GC.
Attachments (2)
Change History (5)
Changed 16 years ago by
Changed 16 years ago by
Attachment: | patch.2.txt added |
---|
Suggested patch for XMLHTTP inspection rather then rigging
comment:4 Changed 16 years ago by
need: | → Review |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Type: | enhancement → bug |
Version: | 1.1 |
Suggested patch for XMLHTTP inspection rather then rigging