
05.02.2010, 17:05
|
|
Постоянный
Регистрация: 06.06.2007
Сообщений: 575
С нами:
9963746
Репутация:
180
|
|
что возвращает код
Код:
parseInt(Math.floor(Math.random()*99999))
число или строку ?
и еще что делает вот это
Код:
httpRequest.open("POST", url, true);
httpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpRequest.onreadystatechange = function() {
if (httpRequest.readyState == 4) {
if (httpRequest.status == 200) {
if(httpRequest.responseText == 'OK'){
RegistrationForm.submit();
return true;
}
выделеная строчка
|
|
|