Hi,
Firstly, I don't know if this is just and isolated thing with the
prototype.js library or
is a problem in general with ajax calls with a '+' character, so i am
posting it here.
I am trying to send input from a form to do a live php boolean
search. so an example
search string is
'+neoflex +standard +output -green'
the problem is something is filtering the '+' and i can figure out to to
send it.
here is the html and js that i am using.
<input type="text" id="prodid" onkeyup="autosearch(this)" name="prodid" />
function autosearch(element)
{ new Ajax.Request('ajax-search.php',
{ method: 'post',
postBody: element.name + '=' + escape(element.value),
onComplete: showResponse
});
return false;
}
ajax-search.php just echos (for testing right now)
$_POST['proddes']
'neoflex standard output -green'
This demo does the same thing if you enter something like '+jack' or
'jack+jill'
http://24ways.org/examples/easy-ajax-with-prototype/
http://24ways.org/advent/easy-ajax-with-prototype
any ideas?
Chuck