javascript - Yii, update list by ajax, cant understand how it works; -



javascript - Yii, update list by ajax, cant understand how it works; -

i have edit function in js filters content of list, code follows:

var id = $(this).data('id'); $.fn.yiilistview.update('contests-list', { data: {category: 2} });

i not find documentation of $.fn.yiilistview.update , info took url: /?ajax=contests-list&category=2

if come in link index.php displayed, while firebug shows html of list elements.

my goal create filter display contents of few categories, not 2 in illustration

http://www.yiiframework.com/forum/index.php/topic/37961-fnyiilistviewupdate/

on "success" u create changes

eg.

var id = $(this).data('id'); $.fn.yiilistview.update('contests-list', { data: {category: 2}, success: function(){ alert('i stuff'); } });

javascript php jquery yii

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -