We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,886 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

xmlHttp.readyState 1

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
1 Hour
Discussion Span
1 Year Ago
Last Updated
3
Views
Question
Answered
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Isn't there a ? missing?

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

pritaeas
Posting Prodigy
Moderator
9,268 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86

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);
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by pritaeas

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0605 seconds using 2.7MB