On 30 Kwi, 17:59, chenghong <
chengh...@gmail.com> wrote:
> Hi there,
>
> Good suggestion. I agree that performance could generally be faster in
> your method. However, I'm also concerned about cloneNode not being
> able to copy over event handlers or modified / custom attributes. I
> have some scenarios in mind and I'll test them out before getting back
> to you.
Check results. I find the method is quite fast.
One more thing. Do not add the amount of code that solve the problem
with the cache in IE, when it comes to AJAX type GET queries? For
example:
if (method === "GET") {
XMLHttp.setRequestHeader("Cache-Control", "no-cache");
XMLHttp.setRequestHeader("If-Modified-Since", "Wed, 31 Dec
1980 00:00:00 GMT");
XMLHttp.setRequestHeader("Expires", "Wed, 31 Dec 1980
00:00:00 GMT");
}
Just before:
if (method === "POST") {
[...]
Maybe someone will suggest something.
> Thanks!
You welcome!
> Cheers,
> chenghong
--
Regards,
Cezary