|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Jan 2008
Città: roma
Messaggi: 296
|
[AJAX] Error : length required
Salve , ho fatto un piccolo sito con php/ ajax ,e in locale funziona benissimo , ora che l'ho messo su server tutte le funzioni che usano ajax non funzionano , mi da questo errore "Error: length required" .... , ma non capisco a cosa si riferisce ... ( nel header ho settato il length .. almeno spero .. )
il codice che genera l'errore e questo Codice:
var ajax = this.getXMLInstance();
var _response = "";
ajax.open(POST , URL , false);
ajax.setRequestHeader("Content-type" , "application/x-www-form-urlencoded");
ajax.setRequestHeader("Content-length" , params.length);
ajax.send(params);
if(statusText[ajax.status] == "OK"){
_response = ajax.responseText;
}else{
alert("Error : " + statusText[ajax.status]);
}
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 16:21.



















