Solved

AJAX and asp error post with no space

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

10 Experts available now in Live!

Get 1:1 Help Now