ajax redering view

I am doing a ajax.request js function with prototype,so I want to render (echo) a view with out the layout from the controller.

How can I do that.

Is here a way to understant controller that there is a ajax equest?

You can render the view with renderPartial (render the view without applying layout)

More info here:

http://www.yiiframework.com/doc/api/CController#renderPartial-detail

http://www.yiiframework.com/doc/api/CHttpRequest#isAjaxRequest-detail

Edit:

One of many examples in previous forum posts (jquery event not attaching in dynamic renderpartial)

http://www.yiiframework.com/forum/index.php?/topic/3246-jquery-event-not-attaching-in-dynamic-renderpartial/page__hl__isajaxrequest__fromsearch__1

/Tommy