emposha / FCBKcomplete

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

Add static JSON Object? #54

Closed mcteo closed 13 years ago

mcteo commented 13 years ago

I was trying to hack the ability to pass an a javascipt array to this, then loading it?

I tried passing JSON.stringify(obj), to no avail?

any help?

mcteo commented 13 years ago

I tweaked the source to add an extra "json_obj" parameter, that contained the json object. I checked this for content then added """addMembers(etext, jquery.parseJSON(options.json_obj)); bindEvents();"""

($.parseJSON() required at least ver 1.4.1, about 1.2.0 is supplied)

works grand now, thanks.

when I'm here, when typing the delay is so quick, one doesnt have time to scroll to it, before it goes, how can i extend this?