| Author |
AJAX: posting a ampersand?
|
Kevin Cornwell
Ranch Hand
Joined: Feb 01, 2005
Posts: 34
|
|
I can't seem to post a '&' in a post from via AJAX. Everything else works fine. in my form.. oFrm.my_shout.value = 'foo & bar'; AJAX... in my php... returns... foo [ June 19, 2006: Message edited by: Kevin Cornwell ]
|
<a href="http://www.kevincornwell.com" target="_blank" rel="nofollow">http://www.kevincornwell.com</A>
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
You need to escape/encode it. Just look at Google for JavaScript encodeURI or JavaScript escape Eric
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56540
|
|
|
Note that this is not something that is Ajax specific -- when formatting a URL by hand you must encode parameter values.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Kevin Cornwell
Ranch Hand
Joined: Feb 01, 2005
Posts: 34
|
|
Works! Thanks Eric.
|
 |
 |
|
|
subject: AJAX: posting a ampersand?
|
|
|