equal
deleted
inserted
replaced
31 } |
31 } |
32 } |
32 } |
33 ajax.onreadystatechange = f; |
33 ajax.onreadystatechange = f; |
34 ajax.open('POST', uri, true); |
34 ajax.open('POST', uri, true); |
35 ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
35 ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
36 ajax.setRequestHeader("Content-length", parms.length); |
36 // Setting Content-length in Safari triggers a warning |
|
37 if ( !is_Safari ) |
|
38 { |
|
39 ajax.setRequestHeader("Content-length", parms.length); |
|
40 } |
37 ajax.setRequestHeader("Connection", "close"); |
41 ajax.setRequestHeader("Connection", "close"); |
38 ajax.send(parms); |
42 ajax.send(parms); |
39 } |
43 } |
40 |
44 |
41 function ajaxEscape(text) |
45 function ajaxEscape(text) |