Open Cleopatria opened 8 years ago
You'd better pass absolute path to data.json
file, like /path/to/data.json
.
So.. I have to make folder named path?
that's not necessary, if it's on your root directory, just pass '/data.json'
Thank you for responding, I've tried to use /path/to/data.json
but it's not working.
@Cleopatria, what's the exact uri to your data.json?
This plugin's great.. but I wonder how to implement this plugin with ajax. I tried using this code
<script> $('.mentions').mentionsInput({source: 'data.json'}) </script>
data.json
[ {value: 'alex', uid: 'user:1'}, {value: 'andrew', uid: 'user:2'}, {value: 'angry birds', uid: 'game:5'}, {value: 'assault', uid: 'game:3'} ]
but those name didn't appear.
How to fix it?