GSTAR
(Omzy83)
1
Is it possible to invoke a JS function after the CListView has received new content from a pager action?
For example, when I click a page link, it needs to run a JS function that makes the page scroll to the top (so user can see the results properly).
softark
(Softark)
2
GSTAR
(Omzy83)
3
Thanks. I did try that yesterday but it didn’t work. I figured it out though.
Basically instead of:
'afterAjaxUpdate'=>'js:yourFunction()',
You need to do:
'afterAjaxUpdate'=>'js:yourFunction',
I.e. without the parenthesis.