ajaxSubmitButton, ajaxButton, and nested CJui widgets not working
Posted 01 June 2010 - 05:45 PM
Unfortunately, I can't use CJuiAccordion inside the CJuiTabs in this arrangement; and I just noticed that none of my ajax links or buttons work either inside this tab arrangement. Does anybody have any idea why this would be?
Posted 02 June 2010 - 09:10 AM
Checking the code of a page, you can see how all ajax lika are just tag a with an id like #yt1, and in the bottom of the page there is smth like:
That system sometime has problem, expecially when link are in some response.
If an ajax link have to me refreshed by an ajax request, I usually create ajax link like that:
return CHtml::link( $label, '', array( 'onClick'=>CHtml::ajax(array ( 'url'=>$url, 'update'=>$div, 'type'=>'POST', )), 'style'=>"cursor:pointer;" ) );
Like that there are no id that can be ambiguous, it generate a tag with embedded his code. This kind of like always work, even after ajax request.
Posted 08 June 2010 - 02:00 AM
That's not a bad philosophy, but maybe to have the possibility of write something "sort all field of the table plus this one" should be nice.
For now you should do all on your own.