Topic: XMLHttpRequest destructor?

When doing raw ajax programming a new XMLhttpRequest object is created using the 'new' keyword.  What I am wondering is if there is an equal destructor for the object?  Somebody I know is using raw ajax rather than xajax and isn't sure if they need to destroy the object to avoid mem leaks, etc...

Thanks for the info!

- Nick

Re: XMLHttpRequest destructor?

Everything I have read tells me that the answer is 'NO' because XMLhttpRequest objects should not be reused anyway because of flags that get set which are not reversible.  Is this a correct answer to my question?

Re: XMLHttpRequest destructor?

Nick,

Everything I read seems to agree with your take on it.

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: XMLHttpRequest destructor?

Yep, use it and forget it. I don't know any destructor methods.

btw: Ed, nice hat smile