Javascript In Resopnse Is Not Evaluated

I am new to Yii and found it a great framework. I am trying to make registration form in fancybox model(fancybox extension),when I tried to use fancybox to display content as inline content then ajaxsubmitbutton on loaded page not working. If content is loaded as Iframe then ajax on other page is working, but fancybox autosize property not working.

Is there any way to execute / evaluate javascripts in jquery response(script written by CHtml::ajaxSubmitButton).

any help will be appreciated.