Welcome Guest, Not a member yet? Register   Sign In
problems with ajax
#6

[eluser]Pascal Kriete[/eluser]
Actually , the content-length header is not required [rfc]. By eliminating it you can also eliminate the need for 'Connection: close', making the whole thing just that little bit shorter. :lol:
Code:
if (parameters) {
    xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
}
xmlhttp.send(parameters || null);

I still suggest wrapping it up nicely [example]. You only have to do it once, and then you can forget about it.


Messages In This Thread
problems with ajax - by El Forum - 09-01-2008, 04:59 PM
problems with ajax - by El Forum - 09-01-2008, 05:43 PM
problems with ajax - by El Forum - 09-01-2008, 05:47 PM
problems with ajax - by El Forum - 09-01-2008, 06:20 PM
problems with ajax - by El Forum - 09-01-2008, 07:01 PM
problems with ajax - by El Forum - 09-01-2008, 08:04 PM
problems with ajax - by El Forum - 09-01-2008, 08:18 PM
problems with ajax - by El Forum - 09-01-2008, 08:22 PM
problems with ajax - by El Forum - 09-01-2008, 09:04 PM
problems with ajax - by El Forum - 09-01-2008, 09:18 PM
problems with ajax - by El Forum - 06-14-2010, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB