Looking for user groups
I am always on the look out for places to talk. I live in the Washington DC/ Baltimore region and love to talk at local user groups. If your group meets during the week I am willing to do short drives to do talks. If you meet on the weekend, I am willing to drive a little further.
So if your local user group is looking fo someone to talk about Ajax and JavaScript for 1.5 - 2 Hours I am willing to do it. Contact me at askEric@pascarello.com and we will see what we can arrange.
Eric Pascarello
Coauthor of Ajax In Action
Moderator of HTML/JavaScript at www.JavaRanch.com
Author of: JavaScript: Your Visual Blueprint for Dynamic Web Pages
One thing I see popping up over message boards is people want to reuse the XMLHttpRequest Object instead of creating a new instance every single time. Some developers think this will help in memory leaks. I have not tested it in any way to see if it really helps. But I thought that I would show you it is possible to reuse the same object over again and again with Internet Explorer.
For this code I am going to be using a very basic example. I am not going to use OO code so just bear with it. With Firefox you are able to reuse the XMLHttpRequest object without this craziness, but with Internet Explorer 6 you are not able to do that (I have not tested this in IE 7 yet so hopefully someone will comment on the reuse factor!) If you want to see the code in action keep on reading!
There is a better solution that this posted here: http://radio.javaranch.com/pascarello/2006/03/31/1143817890773.html. So you can read this just to see the wrong way of doing it and the right way is on that link!