Comments (5)
I'm sorry, @windfly2k . I am afraid i can't give you a server side example.
Here is a client side example using remote_filter
for caching. Hope it can help you.
If you still don't understand how to use it, Tell me which part is confusing you.
I get a little busy recently but i will enhance the documentation later, such as writing some example for each callback
later.
It's good to know you like it. Thanks. 😃
from at.js.
Hi @ichord , sorry to bother you again, I studied the example as above given by you carefully however still got some questions, the main problem there is the ajax request can't be launched by using remote_filter with a url. I tried many times however it doesn't work at all. Can you give a completed example to show how to use an ajax request to get data from a remote server? I need to access remote data to add them on the list for selection with at.js, that's very important for my project.
Really appericate your kindly help!
Best regards,
windfly
from at.js.
I real don't know how to show you a complete example..
seems you misunderstand it's usage. You should launch ajax request on your own by remote_filter
.
Try this:
what server side need to do is just return the json data like this:
[{"name":"Jacob"},{"name":"Isabella"},{"name":"Ethan"},{"name":"Emma"}]
client side:
$('.input').atwho("@", {
data: "/data.json",
callbacks: {
remote_filter: function(params, url, callback) {
$.ajax(url, {
data: params
success: function(data) {
$dom_list.html(data)
callback(data)
}
})
}
}
})
If you still get problem. tell me more details such as exception, error message and so so. I really don't know what happen if you don't give me more details.
from at.js.
@windfly2k oh. one more thing. Keep asking if you still get some problem, of course, if you would like to. It does matter.
from at.js.
related to #52
from at.js.
Related Issues (20)
- Condition inside displayTpl HOT 2
- Quill Integration HOT 1
- atwho JavaScript and jQuery area emojis plugin Not working together on same input field
- How to prevent research? When navigating with alt+left
- "At" Not working Properly
- Data Length HOT 1
- tinymce3 integration help
- Error with trix editor every showing The given range isn't in document.
- Highlighter callback errors with 'Unterminated group'
- At.who attaches <span class="atwho-query"> whenever # is typed but failed to remove if nothing from list is selected HOT 2
- Problem with Wp editor.
- Images are not loading
- On removing, want to remove the tag and not show the list to mention again.
- Submit textrea does not submit the full word
- Not matching the email HOT 1
- At.js replaces entire line (instead of trigger) in Froala
- $inputor.atwho('run') not work
- vbulletin member autocomplete @mention
- Cannot read property 'which' of undefined when using dead keys. HOT 1
- Gulp tasks do not declare completion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from at.js.