includes/clientside/static/ajax.js
changeset 40 723bb7acf914
parent 32 4d87aad3c4c0
child 57 b354deeaa4c4
equal deleted inserted replaced
39:c83ff194977a 40:723bb7acf914
    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)