Solved

AJAX and asp error post with no space

Posted on 2013-01-29
3
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…

730 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