last day (19 days later) » 

3:41 PM
0
A: Adding function call on ajaxsubmit YiiBooster

Harutyun AbgaryanTry this $this->widget( 'booster.widgets.TbButton', array( 'label' => 'Click me', 'context' => 'primary', 'htmlOptions' => array( 'onclick' => 'sendpost()' ), ) ); <script type="text/javascript"> function drowGridView() { ...

 
well before reading i knew it wont work and i was right because the TbButton class does not have such index for ajaxOptions array. You can download the extension and see line no #343 - #348 on TbButton class ------ btw i tested it also didnt worked
 
aaaa in yiiboster not worked yhis optin use boostrap cniska.net/yii-bootstrap or write native ajax call
 
now i have developed the whole project on yiibooster cant change, but the point is if they provide option for ajaxSubmit how to get control of that - to me thats strange .
 
one minut i change answer try this
 
i know this will work i am using it know, btw your previous anwsere works i was using the wrong id for the grid :) thnx mate chng ans so that i can mark as helpful :)
 
3:41 PM
try this i checged code
 
hey the previous code was fine -- edit it so that i can mark it helpful
one more thing for error do i need to add error index ?
 
this code not working?
 
hey
harutyun
the code is working great
the previous code
'success' => 'function(data) { $.fn.yiiGridView.update("mygrid");}',
thnx
i wanted to say
update the code so that i can mark helpful :)
 
ok i change
thank you to
 
+ abt the recent code by the looks it will work, and i was using the same thing as temp solution
btw if i wanted to add error
'error' => 'function(data) ......
like this ?
 
3:43 PM
yes like this
 
what abt
before send
and other ajax function
same ?
?
 
I change asner to
'success' => 'function(data) { $.fn.yiiGridView.update("mygrid");}',
one minut
yes other ajax funcion same
 
oki
 
;)
code on this 'success' => 'function(data) { $.fn.yiiGridView.update("mygrid");}', worked?
i update the code..
thank you :)
 

  last day (19 days later) »