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
4 Years
Discussion Span
Last Post by softDeveloper
Featured Replies
  • it's working like this now [CODE]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);[/CODE] Read More

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.
Take the time to help us to help you. Please be thoughtful and detailed and be sure to adhere to our posting rules.