JavaScriptElementProxy是真实DOM对象的proxy,可以代理任何对DOM对象的JavaScript方法调用
还有一些加强的非JavaScript方法可以调用:
[code]
replace_html(*options_for_render)
[/code]
Replaces the innerHTML of the DOM object. See the JavaScriptGenerator#replace_html() method for more information.
[code]
replace(*options_for_render)
[/code]
Replaces the outerHTML for the DOM object. See JavaScriptGenerator#replace() method for more information.
[code]
reload
[/code]
Reloads the content for the element by re-rendering a partial with the same name as the DOM element's id.
还有一些加强的非JavaScript方法可以调用:
[code]
replace_html(*options_for_render)
[/code]
Replaces the innerHTML of the DOM object. See the JavaScriptGenerator#replace_html() method for more information.
[code]
replace(*options_for_render)
[/code]
Replaces the outerHTML for the DOM object. See JavaScriptGenerator#replace() method for more information.
[code]
reload
[/code]
Reloads the content for the element by re-rendering a partial with the same name as the DOM element's id.