1,105,534 Community Members

xmlHttp.readyState 1

Member Avatar
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I'm getting xmlHttp.readyState 1 when sending these parameters and it only happens when parameter 'text' is very big.

var url="replaceText4.jsp";
	url=url+"version="+version+"&work="+actualWork+"&secName="+secName+"&text="+text;


	xmlHttp.open("POST",url,true);
	xmlHttp.send(url);

Could you help me on this?

Member Avatar
pritaeas
mod_pritaeas
11,316 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 156 [?]
Moderator
Featured
Sponsor
 
0
 

Isn't there a ? missing?

Anyway, is your text url encoded, or do you just send plain text, including spaces and special characters?

Member Avatar
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
1
 

it's working like this now

var params = "versao="+version+"&obra="+obraActual+"&secName="+secName+"&texto="+texto;
xmlHttp.open("POST",url,true);

xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=UTF-8");
xmlHttp.setRequestHeader("Content-length", params.length);
xmlHttp.send(params);
Question Answered as of 2 Years Ago by pritaeas
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article