Solved

AJAX and asp error post with no space

Posted on 2013-01-29
3
267 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Force Download of Zip file via JQuery 2 80
Ajax Problem 9 40
How do I interpret the HTTP accept header? 5 76
Need help editing script 3 65
ASP.NET AJAX callbacks to web service are becoming very popular and unavoidable these days. The feel that the user gets when only a part of the page is updated without even hindering the UI is the advantage that the callbacks offer. The wait for the…
There is basically two types of AJAX request in mootools. Request  and Request.HTML Request: Request is the basic XHR request class in MooTools. While not extremely useful on its own, it provides the basic functionality for both Request.HTM…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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, f…

920 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

15 Experts available now in Live!

Get 1:1 Help Now