开发者

jQuery templates - events when render

It's possible to call event e.g. success in jQuery templates. I know, I can use live for bind events, but I need this to jQuery qTip2 tooltips. Now I get JSON and in success event ajax function use tmpl function:

$('#tmpl-threads-list').tmpl(d.threads).appendTo('#topics section.forums-list');

and next I call开发者_如何转开发 function with init tooltips. But this is function is done before templates are render. I require any solution to call function when template is rendered.


Solution is here: http://craigsworks.com/projects/qtip2/tutorials/events/#live

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜