Monday, April 16, 2007

AJAX in IE - thread safe

If you write an AJAX function, be sure to use Microsoft.FreeThreadedXMLDOM rather than Microsoft.XMLDOM if you want to ensure only 1 thread can access your xml objects at a time.

For example, you may want to have this:

x = new ActiveXObject("Microsoft.FreeThreadedXMLDOM");

rather than this:

x = new ActiveXObject("Microsoft.XMLDOM");

-Dan Burke

No comments: