开发者

How to call jQuery on render of the rich:panel

I have a generic jQuery function which aligns the given component to the 开发者_如何学运维center of the page.

Now my page has a rich:panel which must be center aligned. I would have done that by some CSS, but is there a way to call javascript method once the rich:panel is rendered or loaded?


Using JQuery you can do something like :

<rich:panel id="richPanelId">    
</rich:panel>

<rich:jQuery selector="#richPanelId" timing="onload" query="yourMethod()" />
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜