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?

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by softDeveloper
0

Isn't there a ? missing?

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

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);
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.