开发者

Render Ajax question

开发者 https://www.devze.com 2023-02-12 03:41 出处:网络
Excuse me, Perhaps it is a foolish question. there is a way for render a view (with action include) inside other view through ajax request?

Excuse me, Perhaps it is a foolish question.

there is a way for render a view (with action include) inside other view through ajax request?

I need to use ajax but i need that data don´t charge in principal action. I need that data charge in other action.

I don´t want to 开发者_JS百科use a partial.

Thanks in advice


You can have an empty container div and fill it with the return data of a jQuery.ajax call to an action on one of your controllers with render :viewname, :layout => false

0

精彩评论

暂无评论...
验证码 换一张
取 消