Solved

AJAX and asp error post with no space

Posted on 2013-01-29
3
268 Views
Last Modified: 2013-01-29
I´m using AJAX with asp. When doing a POST the spaces between words disappear.
0
Comment
Question by:Jose Bredariol
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 300 total points
ID: 38831991
var words = "this is a word with spaces";
words = encodeURIComponent(words);
// words ready to be  sent now!
0
 

Author Closing Comment

by:Jose Bredariol
ID: 38832001
Thanks
0
 
LVL 82

Expert Comment

by:leakim971
ID: 38832006
why a << B >> grade?
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now