Open todotresde opened 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!
I´m have the same problem... Some one??
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!