podio / jquery-mentions-input

MIT License
985 stars 333 forks source link

& char support #77

Closed abides closed 10 years ago

abides commented 11 years ago

How can i add & (amp) char support, forexample when i start type @m&m its cant find it.

ralyodio commented 11 years ago

It works fine for me. Perhaps you are converting & to & somewhere?

abides commented 11 years ago

Thank you for wake me up about it. Results are coming from php/mysql and i was using like ;

onDataRequest:function (mode, query, callback) { var myrequest = "q="+query

then i do ajax call with data : myrequest

obviously url is like "http://example.com/script.php?q=m&m" and its not working. & char must be url encoded. I just change the code like;

onDataRequest:function (mode, query, callback) { var postdata = []; postdata.push({name:"q",value:query});

then i call ajax with data : postdata

its let the jquery handle rest, now its working.

djhvscf commented 10 years ago

Close this issue. Solved