Hi,
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 <http://24ways.org/examples/easy-ajax-with-prototype/>
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs