jquery triggering not working in firefox extension -
steps reproduce:
i created hai.html , using pagemod injected scripts that, here code , hai.html https://github.com/suneeshtr/trigger-test.git
actual results:
injection of scripts , works fine except triggering. when tried append file works..
here part of code:
alert("content"); $(document).ready(function() { var values = [{val:'santiagotactivos', meta:'santiago montero'}, {val:'johnnyhalife', meta:'johnny halife'}, {val:'arielflesler', meta:'ariel flesler'}, {val:'rbajales', meta:'raul bajales'}]; var customitemtemplate = "<div><span /> <small /></div>"; function elementfactory(element, e) { var template = $(customitemtemplate).find('span') .text('@' + e.val).end() .find('small') .text("(" + e.meta + ")").end(); element.append(template); }; alert(json.stringify($("textarea"))); // here how use $('textarea').sew({values: values, elementfactory: elementfactory}); });
try 1 too:
$('#inputbox').triggeredautocomplete({ hidden: '#hidden_inputbox', source: "/search.php", trigger: "@" });
Comments
Post a Comment