emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 116 forks source link

How to retrieve the data for json object from the server? #126

Open netuser007 opened 12 years ago

netuser007 commented 12 years ago

Hi, Fantastic pluggin!!

I am using FCBKComplete v 2.0.4.

In the given code data is retrieved from the data.txt( json_url: "data.txt" .....) I want to know,- if i have to get the data from the web-server, is there any provision in the current version? Or i should create a file, store it and give that path for json_url ??

Is there any ways i can trigger an event from which i can get the data from the server dynamically.

Thanks in advance!!

mensfeld commented 12 years ago

There is no difference between serving a file from server or generating dynamically a JSON output. Just make sure that you output valid FCKB json and it should work just fine.