You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the above get_users.php code to return the list of users in a JSON form.
Then, I used the following JS code to implement mention feature in my html webpage.
It seemed to work fine at first, but soon I realized that the autocomplete search(?) function was not working. That is, when I type in "Jeff" for example, the list will not show me the corresponding "Jeff Lee", but it will just stay the same and not change. Can anyone please tell me how I can fix this? Thank You.
The text was updated successfully, but these errors were encountered:
while($row = mysqli_fetch_array($result)){ $user = array('value'=>$row['name'], 'uid'=>'user:'.$row['u_id']); array_push($user_data, $user); } $output = json_encode($user_data); echo $output;
I used the above get_users.php code to return the list of users in a JSON form.
Then, I used the following JS code to implement mention feature in my html webpage.
$('.mentions').mentionsInput({ source: 'get_users.php', showAtCaret: true });
It seemed to work fine at first, but soon I realized that the autocomplete search(?) function was not working. That is, when I type in "Jeff" for example, the list will not show me the corresponding "Jeff Lee", but it will just stay the same and not change. Can anyone please tell me how I can fix this? Thank You.
The text was updated successfully, but these errors were encountered: