emposha / FCBKcomplete

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

Change json_url from event #106

Open todotresde opened 12 years ago

todotresde commented 12 years ago

Hi All:

I am trying to change the json_url property from the onselect method, but I don´t found the way to access it. I have something like this:

$("#search").fcbkcomplete({ json_url: "/glooobal/caterpillar1/php/data.php", onselect: function(){ var config =$(this).json_url; console.log("SELECT" + config); $(this).json_url = "New URL"; } });

But $(this) just give me the DOM object.

By now, I use this:

function crear(data){ $("#search").fcbkcomplete({ json_url: data, onselect: function(){ $("#search").trigger("destroy"); crear("data.txt"); } }); }

crear("/glooobal/caterpillar1/php/data.php");

But .... is like to rebuild all just to change an attribute.

Any idea? Thanks!

thiago-zaidem commented 10 years ago

I´m have the same problem... Some one??